Package org.openjdk.asmtools.jasm
Class ClassFileConst
java.lang.Object
org.openjdk.asmtools.jasm.ClassFileConst
ClassFileConst
The classes in Tables are following a Singleton Pattern. These classes are Enums, and they are contained in private hash maps (lookup tables and reverse lookup tables). These hash maps all have public accessors, which clients use to look-up enums.
Tokens in this table carry no external state, and are typically treated as constants. They do not need to be reset.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Annotation Element Type enums Table 4.7.16.1-A.static enum
BasicType enumsstatic enum
A (typed) tag (constant) representing the type of Constant in the Constant Pool.static enum
SubTag enums -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HashMap<Character,
ClassFileConst.AnnotationElementType> private static final HashMap<Integer,
ClassFileConst.BasicType> private static final HashMap<Integer,
ClassFileConst.ConstType> static final int
private static final HashMap<String,
ClassFileConst.BasicType> private static final HashMap<String,
ClassFileConst.ConstType> private static final HashMap<String,
ClassFileConst.SubTag> Lookup-tables for various types.private static final HashMap<Integer,
ClassFileConst.SubTag> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
basicTypeValue
(String idValue) getAnnotationElementType
(char subTag) static ClassFileConst.BasicType
getBasicType
(int subtag) static ClassFileConst.BasicType
getBasicType
(String idValue) private static void
registerAnnotationElementType
(ClassFileConst.AnnotationElementType annotationElementType) private static void
registerBasicType
(ClassFileConst.BasicType basicType) private static void
registerConstantType
(ClassFileConst.ConstType constType) private static void
static ClassFileConst.SubTag
subTag
(int subtag) static ClassFileConst.SubTag
static ClassFileConst.ConstType
tag
(int i) static ClassFileConst.ConstType
-
Field Details
-
JAVA_MAGIC
public static final int JAVA_MAGIC- See Also:
-
NameToSubTag
Lookup-tables for various types. -
SubTags
-
NameToBasicType
-
BasicTypes
-
AnnotationElementTypes
-
NameToConstantType
-
ConstantTypes
-
-
Constructor Details
-
ClassFileConst
public ClassFileConst()
-
-
Method Details
-
tag
-
tag
-
registerConstantType
-
registerSubtag
-
subTag
-
subTag
-
registerBasicType
-
getBasicType
-
getBasicType
-
basicTypeValue
-
registerAnnotationElementType
private static void registerAnnotationElementType(ClassFileConst.AnnotationElementType annotationElementType) -
getAnnotationElementType
-