java.lang.Object
org.glavo.classfile.Attributes
Attribute mappers for standard classfile attributes.
- Since:
- 22
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeMapper<AnnotationDefaultAttribute> Attribute mapper for theAnnotationDefaultattributestatic final AttributeMapper<BootstrapMethodsAttribute> Attribute mapper for theBootstrapMethodsattributestatic final AttributeMapper<CharacterRangeTableAttribute> Attribute mapper for theCharacterRangeTableattributestatic final AttributeMapper<CodeAttribute> Attribute mapper for theCodeattributestatic final AttributeMapper<CompilationIDAttribute> Attribute mapper for theCompilationIDattributestatic final AttributeMapper<ConstantValueAttribute> Attribute mapper for theConstantValueattributestatic final AttributeMapper<DeprecatedAttribute> Attribute mapper for theDeprecatedattributestatic final AttributeMapper<EnclosingMethodAttribute> Attribute mapper for theEnclosingMethodattributestatic final AttributeMapper<ExceptionsAttribute> Attribute mapper for theExceptionsattributestatic final AttributeMapper<InnerClassesAttribute> Attribute mapper for theInnerClassesattributestatic final AttributeMapper<LineNumberTableAttribute> Attribute mapper for theLineNumberTableattributestatic final AttributeMapper<LocalVariableTableAttribute> Attribute mapper for theLocalVariableTableattributestatic final AttributeMapper<LocalVariableTypeTableAttribute> Attribute mapper for theLocalVariableTypeTableattributestatic final AttributeMapper<MethodParametersAttribute> Attribute mapper for theMethodParametersattributestatic final AttributeMapper<ModuleAttribute> Attribute mapper for theModuleattributestatic final AttributeMapper<ModuleHashesAttribute> Attribute mapper for theModuleHashesattributestatic final AttributeMapper<ModuleMainClassAttribute> Attribute mapper for theModuleMainClassattributestatic final AttributeMapper<ModulePackagesAttribute> Attribute mapper for theModulePackagesattributestatic final AttributeMapper<ModuleResolutionAttribute> Attribute mapper for theModuleResolutionattributestatic final AttributeMapper<ModuleTargetAttribute> Attribute mapper for theModuleTargetattributestatic final StringAnnotationDefaultstatic final StringBootstrapMethodsstatic final StringCharacterRangeTablestatic final StringCodestatic final StringCompilationIDstatic final StringConstantValuestatic final StringDeprecatedstatic final StringEnclosingMethodstatic final StringExceptionsstatic final StringInnerClassesstatic final StringLineNumberTablestatic final StringLocalVariableTablestatic final StringLocalVariableTypeTablestatic final StringMethodParametersstatic final StringModulestatic final StringModuleHashesstatic final StringModuleMainClassstatic final StringModulePackagesstatic final StringModuleResolutionstatic final StringModuleTargetstatic final StringNestHoststatic final StringNestMembersstatic final StringPermittedSubclassesstatic final StringRecordstatic final StringRuntimeInvisibleAnnotationsstatic final StringRuntimeInvisibleParameterAnnotationsstatic final StringRuntimeInvisibleTypeAnnotationsstatic final StringRuntimeVisibleAnnotationsstatic final StringRuntimeVisibleParameterAnnotationsstatic final StringRuntimeVisibleTypeAnnotationsstatic final StringSignaturestatic final StringSourceDebugExtensionstatic final StringSourceFilestatic final StringSourceIDstatic final StringStackMapTablestatic final StringSyntheticstatic final AttributeMapper<NestHostAttribute> Attribute mapper for theNestHostattributestatic final AttributeMapper<NestMembersAttribute> Attribute mapper for theNestMembersattributestatic final AttributeMapper<PermittedSubclassesAttribute> Attribute mapper for thePermittedSubclassesattributestatic final Set<AttributeMapper<?>> All standard attribute mappers.static final AttributeMapper<RecordAttribute> Attribute mapper for theRecordattributestatic final AttributeMapper<RuntimeInvisibleAnnotationsAttribute> Attribute mapper for theRuntimeInvisibleAnnotationsattributestatic final AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> Attribute mapper for theRuntimeInvisibleParameterAnnotationsattributestatic final AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> Attribute mapper for theRuntimeInvisibleTypeAnnotationsattributestatic final AttributeMapper<RuntimeVisibleAnnotationsAttribute> Attribute mapper for theRuntimeVisibleAnnotationsattributestatic final AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> Attribute mapper for theRuntimeVisibleParameterAnnotationsattributestatic final AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> Attribute mapper for theRuntimeVisibleTypeAnnotationsattributestatic final AttributeMapper<SignatureAttribute> Attribute mapper for theSignatureattributestatic final AttributeMapper<SourceDebugExtensionAttribute> Attribute mapper for theSourceDebugExtensionattributestatic final AttributeMapper<SourceFileAttribute> Attribute mapper for theSourceFileattributestatic final AttributeMapper<SourceIDAttribute> Attribute mapper for theSourceIDattributestatic final AttributeMapper<StackMapTableAttribute> Attribute mapper for theStackMapTableattributestatic final AttributeMapper<SyntheticAttribute> Attribute mapper for theSyntheticattribute -
Method Summary
Modifier and TypeMethodDescriptionstatic AttributeMapper<?> standardAttribute(Utf8Entry name) Returns the attribute mapper for a standard attribute.
-
Field Details
-
NAME_ANNOTATION_DEFAULT
AnnotationDefault- See Also:
-
NAME_BOOTSTRAP_METHODS
BootstrapMethods- See Also:
-
NAME_CHARACTER_RANGE_TABLE
CharacterRangeTable- See Also:
-
NAME_CODE
Code- See Also:
-
NAME_COMPILATION_ID
CompilationID- See Also:
-
NAME_CONSTANT_VALUE
ConstantValue- See Also:
-
NAME_DEPRECATED
Deprecated- See Also:
-
NAME_ENCLOSING_METHOD
EnclosingMethod- See Also:
-
NAME_EXCEPTIONS
Exceptions- See Also:
-
NAME_INNER_CLASSES
InnerClasses- See Also:
-
NAME_LINE_NUMBER_TABLE
LineNumberTable- See Also:
-
NAME_LOCAL_VARIABLE_TABLE
LocalVariableTable- See Also:
-
NAME_LOCAL_VARIABLE_TYPE_TABLE
LocalVariableTypeTable- See Also:
-
NAME_METHOD_PARAMETERS
MethodParameters- See Also:
-
NAME_MODULE
Module- See Also:
-
NAME_MODULE_HASHES
ModuleHashes- See Also:
-
NAME_MODULE_MAIN_CLASS
ModuleMainClass- See Also:
-
NAME_MODULE_PACKAGES
ModulePackages- See Also:
-
NAME_MODULE_RESOLUTION
ModuleResolution- See Also:
-
NAME_MODULE_TARGET
ModuleTarget- See Also:
-
NAME_NEST_HOST
NestHost- See Also:
-
NAME_NEST_MEMBERS
NestMembers- See Also:
-
NAME_PERMITTED_SUBCLASSES
PermittedSubclasses- See Also:
-
NAME_RECORD
Record- See Also:
-
NAME_RUNTIME_INVISIBLE_ANNOTATIONS
RuntimeInvisibleAnnotations- See Also:
-
NAME_RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
RuntimeInvisibleParameterAnnotations- See Also:
-
NAME_RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
RuntimeInvisibleTypeAnnotations- See Also:
-
NAME_RUNTIME_VISIBLE_ANNOTATIONS
RuntimeVisibleAnnotations- See Also:
-
NAME_RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
RuntimeVisibleParameterAnnotations- See Also:
-
NAME_RUNTIME_VISIBLE_TYPE_ANNOTATIONS
RuntimeVisibleTypeAnnotations- See Also:
-
NAME_SIGNATURE
Signature- See Also:
-
NAME_SOURCE_DEBUG_EXTENSION
SourceDebugExtension- See Also:
-
NAME_SOURCE_FILE
SourceFile- See Also:
-
NAME_SOURCE_ID
SourceID- See Also:
-
NAME_STACK_MAP_TABLE
StackMapTable- See Also:
-
NAME_SYNTHETIC
Synthetic- See Also:
-
ANNOTATION_DEFAULT
Attribute mapper for theAnnotationDefaultattribute -
BOOTSTRAP_METHODS
Attribute mapper for theBootstrapMethodsattribute -
CHARACTER_RANGE_TABLE
Attribute mapper for theCharacterRangeTableattribute -
CODE
Attribute mapper for theCodeattribute -
COMPILATION_ID
Attribute mapper for theCompilationIDattribute -
CONSTANT_VALUE
Attribute mapper for theConstantValueattribute -
DEPRECATED
Attribute mapper for theDeprecatedattribute -
ENCLOSING_METHOD
Attribute mapper for theEnclosingMethodattribute -
EXCEPTIONS
Attribute mapper for theExceptionsattribute -
INNER_CLASSES
Attribute mapper for theInnerClassesattribute -
LINE_NUMBER_TABLE
Attribute mapper for theLineNumberTableattribute -
LOCAL_VARIABLE_TABLE
Attribute mapper for theLocalVariableTableattribute -
LOCAL_VARIABLE_TYPE_TABLE
Attribute mapper for theLocalVariableTypeTableattribute -
METHOD_PARAMETERS
Attribute mapper for theMethodParametersattribute -
MODULE
Attribute mapper for theModuleattribute -
MODULE_HASHES
Attribute mapper for theModuleHashesattribute -
MODULE_MAIN_CLASS
Attribute mapper for theModuleMainClassattribute -
MODULE_PACKAGES
Attribute mapper for theModulePackagesattribute -
MODULE_RESOLUTION
Attribute mapper for theModuleResolutionattribute -
MODULE_TARGET
Attribute mapper for theModuleTargetattribute -
NEST_HOST
Attribute mapper for theNestHostattribute -
NEST_MEMBERS
Attribute mapper for theNestMembersattribute -
PERMITTED_SUBCLASSES
Attribute mapper for thePermittedSubclassesattribute -
RECORD
Attribute mapper for theRecordattribute -
RUNTIME_INVISIBLE_ANNOTATIONS
public static final AttributeMapper<RuntimeInvisibleAnnotationsAttribute> RUNTIME_INVISIBLE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleAnnotationsattribute -
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapper<RuntimeInvisibleParameterAnnotationsAttribute> RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeInvisibleParameterAnnotationsattribute -
RUNTIME_INVISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapper<RuntimeInvisibleTypeAnnotationsAttribute> RUNTIME_INVISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeInvisibleTypeAnnotationsattribute -
RUNTIME_VISIBLE_ANNOTATIONS
Attribute mapper for theRuntimeVisibleAnnotationsattribute -
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS
public static final AttributeMapper<RuntimeVisibleParameterAnnotationsAttribute> RUNTIME_VISIBLE_PARAMETER_ANNOTATIONSAttribute mapper for theRuntimeVisibleParameterAnnotationsattribute -
RUNTIME_VISIBLE_TYPE_ANNOTATIONS
public static final AttributeMapper<RuntimeVisibleTypeAnnotationsAttribute> RUNTIME_VISIBLE_TYPE_ANNOTATIONSAttribute mapper for theRuntimeVisibleTypeAnnotationsattribute -
SIGNATURE
Attribute mapper for theSignatureattribute -
SOURCE_DEBUG_EXTENSION
Attribute mapper for theSourceDebugExtensionattribute -
SOURCE_FILE
Attribute mapper for theSourceFileattribute -
SOURCE_ID
Attribute mapper for theSourceIDattribute -
STACK_MAP_TABLE
Attribute mapper for theStackMapTableattribute -
SYNTHETIC
Attribute mapper for theSyntheticattribute -
PREDEFINED_ATTRIBUTES
All standard attribute mappers.
-
-
Method Details
-
standardAttribute
Returns the attribute mapper for a standard attribute.- Parameters:
name- the name of the attribute to find- Returns:
- the attribute mapper for a standard attribute
-