public enum RawJavaType extends java.lang.Enum<RawJavaType> implements JavaTypeInstance
Modifier and Type | Class and Description |
---|---|
private class |
RawJavaType.Annotated |
Enum Constant and Description |
---|
BOOLEAN |
BYTE |
CHAR |
DOUBLE |
FLOAT |
INT |
LONG |
NULL |
REF |
RETURNADDRESS |
RETURNADDRESSORREF |
SHORT |
VOID |
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
boxedName |
private static java.util.Map<java.lang.String,RawJavaType> |
boxingTypes |
private static java.util.Map<RawJavaType,java.util.Set<RawJavaType>> |
implicitCasts |
private int |
intMax |
private int |
intMin |
private boolean |
isNumber |
private boolean |
isObject |
private java.lang.String |
name |
private static java.util.Map<java.lang.String,RawJavaType> |
podLookup |
private StackType |
stackType |
private java.lang.String |
suggestedVarName |
private boolean |
usableType |
public static final RawJavaType BOOLEAN
public static final RawJavaType BYTE
public static final RawJavaType CHAR
public static final RawJavaType SHORT
public static final RawJavaType INT
public static final RawJavaType LONG
public static final RawJavaType FLOAT
public static final RawJavaType DOUBLE
public static final RawJavaType VOID
public static final RawJavaType REF
public static final RawJavaType RETURNADDRESS
public static final RawJavaType RETURNADDRESSORREF
public static final RawJavaType NULL
private final java.lang.String name
private final java.lang.String suggestedVarName
private final StackType stackType
private final boolean usableType
private final java.lang.String boxedName
private final boolean isNumber
private final boolean isObject
private final int intMin
private final int intMax
private static final java.util.Map<RawJavaType,java.util.Set<RawJavaType>> implicitCasts
private static final java.util.Map<java.lang.String,RawJavaType> boxingTypes
private static final java.util.Map<java.lang.String,RawJavaType> podLookup
public static RawJavaType[] values()
for (RawJavaType c : RawJavaType.values()) System.out.println(c);
public static RawJavaType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static RawJavaType getUnboxedTypeFor(JavaTypeInstance type)
public static RawJavaType getPodNamedType(java.lang.String name)
public java.lang.String getName()
public JavaAnnotatedTypeInstance getAnnotatedInstance()
getAnnotatedInstance
in interface JavaTypeInstance
public StackType getStackType()
getStackType
in interface JavaTypeInstance
public boolean isComplexType()
isComplexType
in interface JavaTypeInstance
public boolean isObject()
isObject
in interface JavaTypeInstance
public JavaGenericRefTypeInstance asGenericRefInstance(JavaTypeInstance other)
asGenericRefInstance
in interface JavaTypeInstance
public JavaTypeInstance directImplOf(JavaTypeInstance other)
directImplOf
in interface JavaTypeInstance
public JavaTypeInstance deObfuscate(ObfuscationTypeMap obfuscationTypeMap)
deObfuscate
in interface JavaTypeInstance
public boolean inIntRange(int value)
public boolean isRaw()
isRaw
in interface JavaTypeInstance
public int compareTypePriorityTo(RawJavaType other)
public int compareAllPriorityTo(RawJavaType other)
public boolean isUsableType()
isUsableType
in interface JavaTypeInstance
public boolean isNumber()
public RawJavaType getRawTypeOfSimpleType()
getRawTypeOfSimpleType
in interface JavaTypeInstance
public JavaTypeInstance removeAnArrayIndirection()
removeAnArrayIndirection
in interface JavaTypeInstance
public JavaTypeInstance getArrayStrippedType()
getArrayStrippedType
in interface JavaTypeInstance
public JavaTypeInstance getDeGenerifiedType()
getDeGenerifiedType
in interface JavaTypeInstance
public int getNumArrayDimensions()
getNumArrayDimensions
in interface JavaTypeInstance
public java.lang.String getRawName()
getRawName
in interface JavaTypeInstance
public java.lang.String getRawName(IllegalIdentifierDump iid)
getRawName
in interface JavaTypeInstance
public InnerClassInfo getInnerClassHereInfo()
getInnerClassHereInfo
in interface JavaTypeInstance
public BindingSuperContainer getBindingSupers()
getBindingSupers
in interface JavaTypeInstance
private boolean implicitlyCastsTo(RawJavaType other)
public boolean implicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb)
implicitlyCastsTo
in interface JavaTypeInstance
public boolean impreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
impreciseCanCastTo
in interface JavaTypeInstance
public boolean correctCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
correctCanCastTo
in interface JavaTypeInstance
public java.lang.String suggestVarName()
suggestVarName
in interface JavaTypeInstance
public void dumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext)
dumpInto
in interface JavaTypeInstance
public void collectInto(TypeUsageCollector typeUsageCollector)
collectInto
in interface JavaTypeInstance
public java.lang.String toString()
toString
in class java.lang.Enum<RawJavaType>