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 enumAnnotation Element Type enums Table 4.7.16.1-A.static enumBasicType enumsstatic enumA (typed) tag (constant) representing the type of Constant in the Constant Pool.static enumSubTag enums -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HashMap<Character, ClassFileConst.AnnotationElementType> private static final HashMap<Integer, ClassFileConst.BasicType> private static final HashMap<String, ClassFileConst.ConstType> private static final HashMap<Integer, ClassFileConst.ConstType> static final intprivate 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 intbasicTypeValue(String idValue) getAnnotationElementType(char subTag) static ClassFileConst.BasicTypegetBasicType(int subtag) static ClassFileConst.BasicTypegetBasicType(String idValue) static ClassFileConst.ConstTypegetBSMArgumentTypeByParseKey(String parseKey) static ClassFileConst.ConstTypegetByParseKey(String parseKey) static ClassFileConst.ConstTypegetByTag(int i) private static voidregisterAnnotationElementType(ClassFileConst.AnnotationElementType annotationElementType) private static voidregisterBasicType(ClassFileConst.BasicType basicType) private static voidregisterConstantType(ClassFileConst.ConstType constType) private static voidstatic ClassFileConst.SubTagsubTag(int subtag) static ClassFileConst.SubTag
-
Field Details
-
JAVA_MAGIC
public static final int JAVA_MAGIC- See Also:
-
NameToSubTag
Lookup-tables for various types. -
SubTags
-
NameToBasicType
-
BasicTypes
-
AnnotationElementTypes
private static final HashMap<Character, ClassFileConst.AnnotationElementType> AnnotationElementTypes -
NameToConstantType
-
BSMArgumentNameToConstantType
-
ConstantTypes
-
-
Constructor Details
-
ClassFileConst
public ClassFileConst()
-
-
Method Details
-
getByTag
-
getByParseKey
-
getBSMArgumentTypeByParseKey
-
registerConstantType
-
registerSubtag
-
subTag
-
subTag
-
registerBasicType
-
getBasicType
-
getBasicType
-
basicTypeValue
-
registerAnnotationElementType
private static void registerAnnotationElementType(ClassFileConst.AnnotationElementType annotationElementType) -
getAnnotationElementType
-