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 Object implements IJavaClassIRType
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static IRType
get(IJavaClassInfo cls)
static IRType
get(Class cls)
IRType
getArrayType()
IRType
getComponentType()
String
getDescriptor()
Class
getJavaClass()
IJavaClassInfo
getJavaClassInfo()
String
getName()
Class
getPrimitiveClass()
String
getRelativeName()
String
getSlashName()
IType
getType()
boolean
isArray()
boolean
isAssignableFrom(IRType otherType)
boolean
isBoolean()
boolean
isByte()
boolean
isChar()
boolean
isDouble()
boolean
isFloat()
boolean
isInt()
boolean
isInterface()
boolean
isLong()
boolean
isPrimitive()
boolean
isShort()
boolean
isStructural()
boolean
isStructuralAndErased(IRType ownersType)
boolean
isVoid()
String
toString()
-
-
-
Method Detail
-
get
public static IRType get(IJavaClassInfo cls)
-
getRelativeName
public String getRelativeName()
- Specified by:
getRelativeName
in interfaceIRType
-
getDescriptor
public String getDescriptor()
- Specified by:
getDescriptor
in interfaceIRType
-
getJavaClassInfo
public IJavaClassInfo getJavaClassInfo()
- Specified by:
getJavaClassInfo
in interfaceIJavaClassIRType
-
getJavaClass
public Class getJavaClass()
- Specified by:
getJavaClass
in interfaceIRType
-
getSlashName
public String getSlashName()
- Specified by:
getSlashName
in interfaceIRType
-
isStructural
public boolean isStructural()
- Specified by:
isStructural
in interfaceIRType
-
isStructuralAndErased
public boolean isStructuralAndErased(IRType ownersType)
- Specified by:
isStructuralAndErased
in interfaceIRType
-
getArrayType
public IRType getArrayType()
- Specified by:
getArrayType
in interfaceIRType
-
getComponentType
public IRType getComponentType()
- Specified by:
getComponentType
in interfaceIRType
-
isAssignableFrom
public boolean isAssignableFrom(IRType otherType)
- Specified by:
isAssignableFrom
in interfaceIRType
-
isPrimitive
public boolean isPrimitive()
- Specified by:
isPrimitive
in interfaceIRType
-
isInterface
public boolean isInterface()
- Specified by:
isInterface
in interfaceIRType
-
getPrimitiveClass
public Class getPrimitiveClass()
-
-