Enum Class RawJavaType
- All Implemented Interfaces:
Serializable
,Comparable<RawJavaType>
,Constable
,JavaTypeInstance
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private static final Map<String,
RawJavaType> private static final Map<RawJavaType,
Set<RawJavaType>> private final int
private final int
private final boolean
private final boolean
private final String
private static final Map<String,
RawJavaType> private final StackType
private final String
private final boolean
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
RawJavaType
(String name, String suggestedVarName, StackType stackType, boolean usableType, boolean objectType) private
RawJavaType
(String name, String suggestedVarName, StackType stackType, boolean usableType, String boxedName, boolean isNumber, boolean objectType) private
RawJavaType
(String name, String suggestedVarName, StackType stackType, boolean usableType, String boxedName, boolean isNumber, boolean objectType, int intMin, int intMax) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collectInto
(TypeUsageCollector typeUsageCollector) int
compareAllPriorityTo
(RawJavaType other) int
compareTypePriorityTo
(RawJavaType other) boolean
correctCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) deObfuscate
(ObfuscationTypeMap obfuscationTypeMap) directImplOf
(JavaTypeInstance other) void
dumpInto
(Dumper d, TypeUsageInformation typeUsageInformation, TypeContext typeContext) getName()
int
static RawJavaType
getPodNamedType
(String name) static RawJavaType
boolean
implicitlyCastsTo
(JavaTypeInstance other, GenericTypeBinder gtb) private boolean
implicitlyCastsTo
(RawJavaType other) boolean
impreciseCanCastTo
(JavaTypeInstance other, GenericTypeBinder gtb) boolean
inIntRange
(int value) boolean
boolean
isNumber()
boolean
isObject()
boolean
isRaw()
boolean
toString()
static RawJavaType
Returns the enum constant of this class with the specified name.static RawJavaType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
BYTE
-
CHAR
-
SHORT
-
INT
-
LONG
-
FLOAT
-
DOUBLE
-
VOID
-
REF
-
RETURNADDRESS
-
RETURNADDRESSORREF
-
NULL
-
-
Field Details
-
name
-
suggestedVarName
-
stackType
-
usableType
private final boolean usableType -
boxedName
-
isNumber
private final boolean isNumber -
isObject
private final boolean isObject -
intMin
private final int intMin -
intMax
private final int intMax -
implicitCasts
-
boxingTypes
-
podLookup
-
-
Constructor Details
-
RawJavaType
-
RawJavaType
-
RawJavaType
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getUnboxedTypeFor
-
getPodNamedType
-
getName
-
getAnnotatedInstance
- Specified by:
getAnnotatedInstance
in interfaceJavaTypeInstance
-
getStackType
- Specified by:
getStackType
in interfaceJavaTypeInstance
-
isComplexType
public boolean isComplexType()- Specified by:
isComplexType
in interfaceJavaTypeInstance
-
isObject
public boolean isObject()- Specified by:
isObject
in interfaceJavaTypeInstance
-
asGenericRefInstance
- Specified by:
asGenericRefInstance
in interfaceJavaTypeInstance
-
directImplOf
- Specified by:
directImplOf
in interfaceJavaTypeInstance
-
deObfuscate
- Specified by:
deObfuscate
in interfaceJavaTypeInstance
-
inIntRange
public boolean inIntRange(int value) -
isRaw
public boolean isRaw()- Specified by:
isRaw
in interfaceJavaTypeInstance
-
compareTypePriorityTo
-
compareAllPriorityTo
-
isUsableType
public boolean isUsableType()- Specified by:
isUsableType
in interfaceJavaTypeInstance
-
isNumber
public boolean isNumber() -
getRawTypeOfSimpleType
- Specified by:
getRawTypeOfSimpleType
in interfaceJavaTypeInstance
-
removeAnArrayIndirection
- Specified by:
removeAnArrayIndirection
in interfaceJavaTypeInstance
-
getArrayStrippedType
- Specified by:
getArrayStrippedType
in interfaceJavaTypeInstance
-
getDeGenerifiedType
- Specified by:
getDeGenerifiedType
in interfaceJavaTypeInstance
-
getNumArrayDimensions
public int getNumArrayDimensions()- Specified by:
getNumArrayDimensions
in interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getRawName
- Specified by:
getRawName
in interfaceJavaTypeInstance
-
getInnerClassHereInfo
- Specified by:
getInnerClassHereInfo
in interfaceJavaTypeInstance
-
getBindingSupers
- Specified by:
getBindingSupers
in interfaceJavaTypeInstance
-
implicitlyCastsTo
-
implicitlyCastsTo
- Specified by:
implicitlyCastsTo
in interfaceJavaTypeInstance
-
impreciseCanCastTo
- Specified by:
impreciseCanCastTo
in interfaceJavaTypeInstance
-
correctCanCastTo
- Specified by:
correctCanCastTo
in interfaceJavaTypeInstance
-
suggestVarName
- Specified by:
suggestVarName
in interfaceJavaTypeInstance
-
dumpInto
- Specified by:
dumpInto
in interfaceJavaTypeInstance
-
collectInto
- Specified by:
collectInto
in interfaceJavaTypeInstance
-
toString
- Overrides:
toString
in classEnum<RawJavaType>
-