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 JavaTypeInstancepublic StackType getStackType()
getStackType in interface JavaTypeInstancepublic boolean isComplexType()
isComplexType in interface JavaTypeInstancepublic boolean isObject()
isObject in interface JavaTypeInstancepublic JavaGenericRefTypeInstance asGenericRefInstance(JavaTypeInstance other)
asGenericRefInstance in interface JavaTypeInstancepublic JavaTypeInstance directImplOf(JavaTypeInstance other)
directImplOf in interface JavaTypeInstancepublic JavaTypeInstance deObfuscate(ObfuscationTypeMap obfuscationTypeMap)
deObfuscate in interface JavaTypeInstancepublic boolean inIntRange(int value)
public boolean isRaw()
isRaw in interface JavaTypeInstancepublic int compareTypePriorityTo(RawJavaType other)
public int compareAllPriorityTo(RawJavaType other)
public boolean isUsableType()
isUsableType in interface JavaTypeInstancepublic boolean isNumber()
public RawJavaType getRawTypeOfSimpleType()
getRawTypeOfSimpleType in interface JavaTypeInstancepublic JavaTypeInstance removeAnArrayIndirection()
removeAnArrayIndirection in interface JavaTypeInstancepublic JavaTypeInstance getArrayStrippedType()
getArrayStrippedType in interface JavaTypeInstancepublic JavaTypeInstance getDeGenerifiedType()
getDeGenerifiedType in interface JavaTypeInstancepublic int getNumArrayDimensions()
getNumArrayDimensions in interface JavaTypeInstancepublic java.lang.String getRawName()
getRawName in interface JavaTypeInstancepublic java.lang.String getRawName(IllegalIdentifierDump iid)
getRawName in interface JavaTypeInstancepublic InnerClassInfo getInnerClassHereInfo()
getInnerClassHereInfo in interface JavaTypeInstancepublic BindingSuperContainer getBindingSupers()
getBindingSupers in interface JavaTypeInstanceprivate boolean implicitlyCastsTo(RawJavaType other)
public boolean implicitlyCastsTo(JavaTypeInstance other, GenericTypeBinder gtb)
implicitlyCastsTo in interface JavaTypeInstancepublic boolean impreciseCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
impreciseCanCastTo in interface JavaTypeInstancepublic boolean correctCanCastTo(JavaTypeInstance other, GenericTypeBinder gtb)
correctCanCastTo in interface JavaTypeInstancepublic java.lang.String suggestVarName()
suggestVarName in interface JavaTypeInstancepublic void dumpInto(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext)
dumpInto in interface JavaTypeInstancepublic void collectInto(TypeUsageCollector typeUsageCollector)
collectInto in interface JavaTypeInstancepublic java.lang.String toString()
toString in class java.lang.Enum<RawJavaType>