< prev index next >

src/java.base/share/classes/java/lang/classfile/Attributes.java

Print this page

 37  * do not permit multiple attribute instances in a given location.
 38  * <p>
 39  * The most stable {@link AttributeStability#STATELESS STATELESS} mappers are:
 40  * <ul>
 41  * <li>{@link #deprecated()}
 42  * <li>{@link #moduleResolution()}
 43  * <li>{@link #sourceDebugExtension()}
 44  * <li>{@link #synthetic()}
 45  * </ul>
 46  *
 47  * The mappers with {@link AttributeStability#CP_REFS CP_REFS} stability are:
 48  * <ul>
 49  * <li>{@link #annotationDefault()}
 50  * <li>{@link #bootstrapMethods()}
 51  * <li>{@link #code()}
 52  * <li>{@link #compilationId()}
 53  * <li>{@link #constantValue()}
 54  * <li>{@link #enclosingMethod()}
 55  * <li>{@link #exceptions()}
 56  * <li>{@link #innerClasses()}

 57  * <li>{@link #methodParameters()}
 58  * <li>{@link #module()}
 59  * <li>{@link #moduleHashes()}
 60  * <li>{@link #moduleMainClass()}
 61  * <li>{@link #modulePackages()}
 62  * <li>{@link #moduleTarget()}
 63  * <li>{@link #nestHost()}
 64  * <li>{@link #nestMembers()}
 65  * <li>{@link #permittedSubclasses()}
 66  * <li>{@link #record()}
 67  * <li>{@link #runtimeInvisibleAnnotations()}
 68  * <li>{@link #runtimeInvisibleParameterAnnotations()}
 69  * <li>{@link #runtimeVisibleAnnotations()}
 70  * <li>{@link #runtimeVisibleParameterAnnotations()}
 71  * <li>{@link #signature()}
 72  * <li>{@link #sourceFile()}
 73  * <li>{@link #sourceId()}
 74  * </ul>
 75  *
 76  * The mappers with {@link AttributeStability#LABELS LABELS} stability are:

110     public static final String NAME_COMPILATION_ID = "CompilationID";
111 
112     /** ConstantValue */
113     public static final String NAME_CONSTANT_VALUE = "ConstantValue";
114 
115     /** Deprecated */
116     public static final String NAME_DEPRECATED = "Deprecated";
117 
118     /** EnclosingMethod */
119     public static final String NAME_ENCLOSING_METHOD = "EnclosingMethod";
120 
121     /** Exceptions */
122     public static final String NAME_EXCEPTIONS = "Exceptions";
123 
124     /** InnerClasses */
125     public static final String NAME_INNER_CLASSES = "InnerClasses";
126 
127     /** LineNumberTable */
128     public static final String NAME_LINE_NUMBER_TABLE = "LineNumberTable";
129 



130     /** LocalVariableTable */
131     public static final String NAME_LOCAL_VARIABLE_TABLE = "LocalVariableTable";
132 
133     /** LocalVariableTypeTable */
134     public static final String NAME_LOCAL_VARIABLE_TYPE_TABLE = "LocalVariableTypeTable";
135 
136     /** MethodParameters */
137     public static final String NAME_METHOD_PARAMETERS = "MethodParameters";
138 
139     /** Module */
140     public static final String NAME_MODULE = "Module";
141 
142     /** ModuleHashes */
143     public static final String NAME_MODULE_HASHES = "ModuleHashes";
144 
145     /** ModuleMainClass */
146     public static final String NAME_MODULE_MAIN_CLASS = "ModuleMainClass";
147 
148     /** ModulePackages */
149     public static final String NAME_MODULE_PACKAGES = "ModulePackages";

279         return ExceptionsMapper.INSTANCE;
280     }
281 
282     /**
283      * {@return Attribute mapper for the {@code InnerClasses} attribute}
284      * @since 23
285      */
286     public static AttributeMapper<InnerClassesAttribute> innerClasses() {
287         return InnerClassesMapper.INSTANCE;
288     }
289 
290     /**
291      * {@return Attribute mapper for the {@code LineNumberTable} attribute}
292      * The mapper permits multiple instances in a given location.
293      * @since 23
294      */
295     public static AttributeMapper<LineNumberTableAttribute> lineNumberTable() {
296         return LineNumberTableMapper.INSTANCE;
297     }
298 








299     /**
300      * {@return Attribute mapper for the {@code LocalVariableTable} attribute}
301      * The mapper permits multiple instances in a given location.
302      * @since 23
303      */
304     public static AttributeMapper<LocalVariableTableAttribute> localVariableTable() {
305         return LocalVariableTableMapper.INSTANCE;
306     }
307 
308     /**
309      * {@return Attribute mapper for the {@code LocalVariableTypeTable} attribute}
310      * The mapper permits multiple instances in a given location.
311      * @since 23
312      */
313     public static AttributeMapper<LocalVariableTypeTableAttribute> localVariableTypeTable() {
314         return LocalVariableTypeTableMapper.INSTANCE;
315     }
316 
317     /**
318      * {@return Attribute mapper for the {@code MethodParameters} attribute}

 37  * do not permit multiple attribute instances in a given location.
 38  * <p>
 39  * The most stable {@link AttributeStability#STATELESS STATELESS} mappers are:
 40  * <ul>
 41  * <li>{@link #deprecated()}
 42  * <li>{@link #moduleResolution()}
 43  * <li>{@link #sourceDebugExtension()}
 44  * <li>{@link #synthetic()}
 45  * </ul>
 46  *
 47  * The mappers with {@link AttributeStability#CP_REFS CP_REFS} stability are:
 48  * <ul>
 49  * <li>{@link #annotationDefault()}
 50  * <li>{@link #bootstrapMethods()}
 51  * <li>{@link #code()}
 52  * <li>{@link #compilationId()}
 53  * <li>{@link #constantValue()}
 54  * <li>{@link #enclosingMethod()}
 55  * <li>{@link #exceptions()}
 56  * <li>{@link #innerClasses()}
 57  * <li>{@link #loadableDescriptors()}
 58  * <li>{@link #methodParameters()}
 59  * <li>{@link #module()}
 60  * <li>{@link #moduleHashes()}
 61  * <li>{@link #moduleMainClass()}
 62  * <li>{@link #modulePackages()}
 63  * <li>{@link #moduleTarget()}
 64  * <li>{@link #nestHost()}
 65  * <li>{@link #nestMembers()}
 66  * <li>{@link #permittedSubclasses()}
 67  * <li>{@link #record()}
 68  * <li>{@link #runtimeInvisibleAnnotations()}
 69  * <li>{@link #runtimeInvisibleParameterAnnotations()}
 70  * <li>{@link #runtimeVisibleAnnotations()}
 71  * <li>{@link #runtimeVisibleParameterAnnotations()}
 72  * <li>{@link #signature()}
 73  * <li>{@link #sourceFile()}
 74  * <li>{@link #sourceId()}
 75  * </ul>
 76  *
 77  * The mappers with {@link AttributeStability#LABELS LABELS} stability are:

111     public static final String NAME_COMPILATION_ID = "CompilationID";
112 
113     /** ConstantValue */
114     public static final String NAME_CONSTANT_VALUE = "ConstantValue";
115 
116     /** Deprecated */
117     public static final String NAME_DEPRECATED = "Deprecated";
118 
119     /** EnclosingMethod */
120     public static final String NAME_ENCLOSING_METHOD = "EnclosingMethod";
121 
122     /** Exceptions */
123     public static final String NAME_EXCEPTIONS = "Exceptions";
124 
125     /** InnerClasses */
126     public static final String NAME_INNER_CLASSES = "InnerClasses";
127 
128     /** LineNumberTable */
129     public static final String NAME_LINE_NUMBER_TABLE = "LineNumberTable";
130 
131     /** LoadableDescriptors */
132     public static final String NAME_LOADABLE_DESCRIPTORS = "LoadableDescriptors";
133 
134     /** LocalVariableTable */
135     public static final String NAME_LOCAL_VARIABLE_TABLE = "LocalVariableTable";
136 
137     /** LocalVariableTypeTable */
138     public static final String NAME_LOCAL_VARIABLE_TYPE_TABLE = "LocalVariableTypeTable";
139 
140     /** MethodParameters */
141     public static final String NAME_METHOD_PARAMETERS = "MethodParameters";
142 
143     /** Module */
144     public static final String NAME_MODULE = "Module";
145 
146     /** ModuleHashes */
147     public static final String NAME_MODULE_HASHES = "ModuleHashes";
148 
149     /** ModuleMainClass */
150     public static final String NAME_MODULE_MAIN_CLASS = "ModuleMainClass";
151 
152     /** ModulePackages */
153     public static final String NAME_MODULE_PACKAGES = "ModulePackages";

283         return ExceptionsMapper.INSTANCE;
284     }
285 
286     /**
287      * {@return Attribute mapper for the {@code InnerClasses} attribute}
288      * @since 23
289      */
290     public static AttributeMapper<InnerClassesAttribute> innerClasses() {
291         return InnerClassesMapper.INSTANCE;
292     }
293 
294     /**
295      * {@return Attribute mapper for the {@code LineNumberTable} attribute}
296      * The mapper permits multiple instances in a given location.
297      * @since 23
298      */
299     public static AttributeMapper<LineNumberTableAttribute> lineNumberTable() {
300         return LineNumberTableMapper.INSTANCE;
301     }
302 
303     /**
304      * {@return Attribute mapper for the {@code LoadableDescriptors} attribute}
305      * @since 23
306      */
307     public static AttributeMapper<LoadableDescriptorsAttribute> loadableDescriptors() {
308         return LoadableDescriptorsMapper.INSTANCE;
309     }
310 
311     /**
312      * {@return Attribute mapper for the {@code LocalVariableTable} attribute}
313      * The mapper permits multiple instances in a given location.
314      * @since 23
315      */
316     public static AttributeMapper<LocalVariableTableAttribute> localVariableTable() {
317         return LocalVariableTableMapper.INSTANCE;
318     }
319 
320     /**
321      * {@return Attribute mapper for the {@code LocalVariableTypeTable} attribute}
322      * The mapper permits multiple instances in a given location.
323      * @since 23
324      */
325     public static AttributeMapper<LocalVariableTypeTableAttribute> localVariableTypeTable() {
326         return LocalVariableTypeTableMapper.INSTANCE;
327     }
328 
329     /**
330      * {@return Attribute mapper for the {@code MethodParameters} attribute}
< prev index next >