Package com.strobel.reflection
Enum SimpleType
- java.lang.Object
-
- java.lang.Enum<SimpleType>
-
- com.strobel.reflection.SimpleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<SimpleType>
public enum SimpleType extends java.lang.Enum<SimpleType>
User: Mike Strobel Date: 1/6/13 Time: 2:50 PM
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SimpleType()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
bitWidth()
java.lang.String
getDescriptorPrefix()
java.lang.String
getPrimitiveName()
boolean
isDoubleWord()
boolean
isFloating()
boolean
isIntegral()
boolean
isNumeric()
boolean
isOther()
boolean
isPrimitive()
boolean
isPrimitiveOrVoid()
boolean
isSigned()
boolean
isSingleWord()
boolean
isSubWordOrInt32()
boolean
isUnsigned()
int
stackSlots()
static SimpleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimpleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Boolean
public static final SimpleType Boolean
-
Byte
public static final SimpleType Byte
-
Character
public static final SimpleType Character
-
Short
public static final SimpleType Short
-
Integer
public static final SimpleType Integer
-
Long
public static final SimpleType Long
-
Float
public static final SimpleType Float
-
Double
public static final SimpleType Double
-
Object
public static final SimpleType Object
-
Array
public static final SimpleType Array
-
TypeVariable
public static final SimpleType TypeVariable
-
Wildcard
public static final SimpleType Wildcard
-
Void
public static final SimpleType Void
-
-
Method Detail
-
values
public static SimpleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SimpleType c : SimpleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimpleType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getDescriptorPrefix
public final java.lang.String getDescriptorPrefix()
-
getPrimitiveName
public final java.lang.String getPrimitiveName()
-
isPrimitive
public final boolean isPrimitive()
-
isPrimitiveOrVoid
public final boolean isPrimitiveOrVoid()
-
bitWidth
public final int bitWidth()
-
stackSlots
public final int stackSlots()
-
isSingleWord
public final boolean isSingleWord()
-
isDoubleWord
public final boolean isDoubleWord()
-
isNumeric
public final boolean isNumeric()
-
isIntegral
public final boolean isIntegral()
-
isSubWordOrInt32
public final boolean isSubWordOrInt32()
-
isSigned
public final boolean isSigned()
-
isUnsigned
public final boolean isUnsigned()
-
isFloating
public final boolean isFloating()
-
isOther
public final boolean isOther()
-
-