Package gw.internal.gosu.ir.nodes
Class JavaClassIRType
java.lang.Object
gw.internal.gosu.ir.nodes.JavaClassIRType
- All Implemented Interfaces:
IJavaClassIRType
,IRType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate IJavaClassInfo
private String
private boolean
private boolean
private String
private static final ConcurrentHashMap<IJavaClassInfo,
JavaClassIRType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate String
private String
private static boolean
boolean
static IRType
get
(IJavaClassInfo cls) static IRType
getName()
getType()
boolean
isArray()
boolean
isAssignableFrom
(IRType otherType) boolean
boolean
isByte()
boolean
isChar()
boolean
isDouble()
boolean
isFloat()
boolean
isInt()
boolean
boolean
isLong()
boolean
boolean
isShort()
boolean
boolean
isStructuralAndErased
(IRType ownersType) boolean
isVoid()
private IJavaClassInfo
resolveJavaClassForType
(IType hierarchyType) private static boolean
shouldReplaceAnyway
(IJavaClassInfo cls, JavaClassIRType javaClassIRType) private Class<?>
toString()
-
Field Details
-
_class
-
_isArray
private boolean _isArray -
_isPrimitive
private boolean _isPrimitive -
_slashName
-
_descriptor
-
IR_TYPES_BY_CLASS_INFO
-
-
Constructor Details
-
JavaClassIRType
-
-
Method Details
-
get
-
get
-
shouldReplaceAnyway
-
equal
-
getName
-
getRelativeName
- Specified by:
getRelativeName
in interfaceIRType
-
getDescriptor
- Specified by:
getDescriptor
in interfaceIRType
-
getJavaClassInfo
- Specified by:
getJavaClassInfo
in interfaceIJavaClassIRType
-
computeDescriptor
-
getJavaClass
- Specified by:
getJavaClass
in interfaceIRType
-
thisShouldNeverHappenButDoes
- Throws:
ClassNotFoundException
-
getSlashName
- Specified by:
getSlashName
in interfaceIRType
-
computeSlashName
-
isStructural
public boolean isStructural()- Specified by:
isStructural
in interfaceIRType
-
isStructuralAndErased
- Specified by:
isStructuralAndErased
in interfaceIRType
-
getArrayType
- Specified by:
getArrayType
in interfaceIRType
-
getComponentType
- Specified by:
getComponentType
in interfaceIRType
-
getType
-
isArray
public boolean isArray() -
isAssignableFrom
- Specified by:
isAssignableFrom
in interfaceIRType
-
resolveJavaClassForType
-
equals
-
isByte
public boolean isByte() -
isBoolean
public boolean isBoolean() -
isShort
public boolean isShort() -
isChar
public boolean isChar() -
isInt
public boolean isInt() -
isLong
public boolean isLong() -
isFloat
public boolean isFloat() -
isDouble
public boolean isDouble() -
isVoid
public boolean isVoid() -
isPrimitive
public boolean isPrimitive()- Specified by:
isPrimitive
in interfaceIRType
-
isInterface
public boolean isInterface()- Specified by:
isInterface
in interfaceIRType
-
toString
-
getPrimitiveClass
-