Class PrimitiveType
java.lang.Object
com.ibm.wala.analysis.typeInference.TypeAbstraction
com.ibm.wala.analysis.typeInference.PrimitiveType
- All Implemented Interfaces:
ContextItem
- Direct Known Subclasses:
JavaPrimitiveType, JSPrimitiveType
Abstraction of a primitive type. Subclasses will define the primitive type abstractions for a
particular language.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface ContextItem
ContextItem.Value<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final TypeReferenceprotected static final Map<TypeReference, PrimitiveType> protected final intFields inherited from class TypeAbstraction
TOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PrimitiveTypegetPrimitive(TypeReference reference) getType()This is here for convenience; it makes sense for Point and Cone Dispatch.A TypeReference representing the types of this abstractioninthashCode()meet(TypeAbstraction rhs) intsize()toString()
-
Field Details
-
referenceToType
-
reference
-
size
protected final int size
-
-
Constructor Details
-
PrimitiveType
-
-
Method Details
-
getPrimitive
-
meet
- Specified by:
meetin classTypeAbstraction
-
size
public int size() -
hashCode
public int hashCode()- Specified by:
hashCodein classTypeAbstraction
-
equals
- Specified by:
equalsin classTypeAbstraction
-
getType
Description copied from class:TypeAbstractionThis is here for convenience; it makes sense for Point and Cone Dispatch. TODO: probably should get rid of it.- Overrides:
getTypein classTypeAbstraction
-
getTypeReference
Description copied from class:TypeAbstractionA TypeReference representing the types of this abstraction- Specified by:
getTypeReferencein classTypeAbstraction
-
toString
-