Package com.tonic.analysis.ssa.type
Class ReferenceType
- java.lang.Object
-
- com.tonic.analysis.ssa.type.ReferenceType
-
-
Field Summary
Fields Modifier and Type Field Description static ReferenceTypeCLASSstatic ReferenceTypeOBJECTstatic ReferenceTypeSTRINGstatic ReferenceTypeTHROWABLE
-
Constructor Summary
Constructors Constructor Description ReferenceType(String internalName)Creates a reference type with the given internal name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetDescriptor()StringgetInternalName()StringgetSimpleName()Gets the simple class name without package.intgetSize()inthashCode()booleanisArray()booleanisPrimitive()booleanisReference()booleanisTwoSlot()booleanisVoid()StringtoString()
-
-
-
Field Detail
-
OBJECT
public static final ReferenceType OBJECT
-
STRING
public static final ReferenceType STRING
-
CLASS
public static final ReferenceType CLASS
-
THROWABLE
public static final ReferenceType THROWABLE
-
-
Constructor Detail
-
ReferenceType
public ReferenceType(String internalName)
Creates a reference type with the given internal name.- Parameters:
internalName- the internal class name
-
-
Method Detail
-
getInternalName
public String getInternalName()
- Returns:
- the internal name
-
getDescriptor
public String getDescriptor()
- Specified by:
getDescriptorin interfaceIRType- Returns:
- the JVM type descriptor for this type
-
getSize
public int getSize()
-
isReference
public boolean isReference()
- Specified by:
isReferencein interfaceIRType- Returns:
- true for object and array types
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceIRType- Returns:
- true for the eight primitive types
-
isVoid
public boolean isVoid()
-
isArray
public boolean isArray()
-
isTwoSlot
public boolean isTwoSlot()
-
getSimpleName
public String getSimpleName()
Gets the simple class name without package.- Returns:
- the simple name
-
-