Package gw.internal.gosu.ir.nodes
Class JavaClassIRType
- java.lang.Object
-
- gw.internal.gosu.ir.nodes.JavaClassIRType
-
- All Implemented Interfaces:
IJavaClassIRType,IRType
public class JavaClassIRType extends java.lang.Object implements IJavaClassIRType
-
-
Field Summary
Fields Modifier and Type Field Description private IJavaClassInfo_classprivate java.lang.String_descriptorprivate boolean_isArrayprivate boolean_isPrimitiveprivate java.lang.String_slashNameprivate static java.util.concurrent.ConcurrentHashMap<IJavaClassInfo,JavaClassIRType>IR_TYPES_BY_CLASS_INFO
-
Constructor Summary
Constructors Modifier Constructor Description privateJavaClassIRType(IJavaClassInfo aClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.StringcomputeDescriptor()private java.lang.StringcomputeSlashName()private static booleanequal(java.lang.Object o1, java.lang.Object o2)booleanequals(java.lang.Object obj)static IRTypeget(IJavaClassInfo cls)static IRTypeget(java.lang.Class cls)IRTypegetArrayType()IRTypegetComponentType()java.lang.StringgetDescriptor()java.lang.ClassgetJavaClass()IJavaClassInfogetJavaClassInfo()java.lang.StringgetName()java.lang.ClassgetPrimitiveClass()java.lang.StringgetRelativeName()java.lang.StringgetSlashName()ITypegetType()booleanisArray()booleanisAssignableFrom(IRType otherType)booleanisBoolean()booleanisByte()booleanisChar()booleanisDouble()booleanisFloat()booleanisInt()booleanisInterface()booleanisLong()booleanisPrimitive()booleanisShort()booleanisStructural()booleanisStructuralAndErased(IRType ownersType)booleanisVoid()private IJavaClassInforesolveJavaClassForType(IType hierarchyType)private static booleanshouldReplaceAnyway(IJavaClassInfo cls, JavaClassIRType javaClassIRType)private java.lang.Class<?>thisShouldNeverHappenButDoes()java.lang.StringtoString()
-
-
-
Field Detail
-
_class
private IJavaClassInfo _class
-
_isArray
private boolean _isArray
-
_isPrimitive
private boolean _isPrimitive
-
_slashName
private java.lang.String _slashName
-
_descriptor
private java.lang.String _descriptor
-
IR_TYPES_BY_CLASS_INFO
private static final java.util.concurrent.ConcurrentHashMap<IJavaClassInfo,JavaClassIRType> IR_TYPES_BY_CLASS_INFO
-
-
Constructor Detail
-
JavaClassIRType
private JavaClassIRType(IJavaClassInfo aClass)
-
-
Method Detail
-
get
public static IRType get(java.lang.Class cls)
-
get
public static IRType get(IJavaClassInfo cls)
-
shouldReplaceAnyway
private static boolean shouldReplaceAnyway(IJavaClassInfo cls, JavaClassIRType javaClassIRType)
-
equal
private static boolean equal(java.lang.Object o1, java.lang.Object o2)
-
getRelativeName
public java.lang.String getRelativeName()
- Specified by:
getRelativeNamein interfaceIRType
-
getDescriptor
public java.lang.String getDescriptor()
- Specified by:
getDescriptorin interfaceIRType
-
getJavaClassInfo
public IJavaClassInfo getJavaClassInfo()
- Specified by:
getJavaClassInfoin interfaceIJavaClassIRType
-
computeDescriptor
private java.lang.String computeDescriptor()
-
getJavaClass
public java.lang.Class getJavaClass()
- Specified by:
getJavaClassin interfaceIRType
-
thisShouldNeverHappenButDoes
private java.lang.Class<?> thisShouldNeverHappenButDoes() throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
getSlashName
public java.lang.String getSlashName()
- Specified by:
getSlashNamein interfaceIRType
-
computeSlashName
private java.lang.String computeSlashName()
-
isStructural
public boolean isStructural()
- Specified by:
isStructuralin interfaceIRType
-
isStructuralAndErased
public boolean isStructuralAndErased(IRType ownersType)
- Specified by:
isStructuralAndErasedin interfaceIRType
-
getArrayType
public IRType getArrayType()
- Specified by:
getArrayTypein interfaceIRType
-
getComponentType
public IRType getComponentType()
- Specified by:
getComponentTypein interfaceIRType
-
isAssignableFrom
public boolean isAssignableFrom(IRType otherType)
- Specified by:
isAssignableFromin interfaceIRType
-
resolveJavaClassForType
private IJavaClassInfo resolveJavaClassForType(IType hierarchyType)
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitivein interfaceIRType
-
isInterface
public boolean isInterface()
- Specified by:
isInterfacein interfaceIRType
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getPrimitiveClass
public java.lang.Class getPrimitiveClass()
-
-