| Modifier and Type | Field and Description |
|---|---|
| public int | resolution
The resolution state of the module. |
| public static final int | RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT
The resolution state of a module meaning that the module is not available from the class-path by default. |
| public static final int | RESOLUTION_WARN_DEPRECATED
The resolution state of a module meaning the module is marked as deprecated. |
| public static final int | RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
The resolution state of a module meaning the module is marked as deprecated and will be removed in a future release. |
| public static final int | RESOLUTION_WARN_INCUBATING
The resolution state of a module meaning the module is not yet standardized, so in incubating mode. |
| Access | Constructor and Description |
|---|---|
| public | ModuleResolutionAttribute(final int
the resolution state of the module. Must be one of resolution)RESOLUTION_WARN_DEPRECATED, RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL, and RESOLUTION_WARN_INCUBATING.Constructs a new |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Attribute | read(final ClassReader
the class that contains the attribute to be read. classReader, final int index of the first byte of the attribute's content in offset, final int ClassReader. The 6
attribute header bytes (attribute_name_index and attribute_length) are not taken into
account here.the length of the attribute's content (excluding the 6 attribute header bytes). length, final char[] the buffer to be used to call the ClassReader methods requiring a
'charBuffer' parameter. charBuffer, final int index of the first byte of content of the enclosing Code attribute
in codeOffset, final Label[] ClassReader, or -1 if the attribute to be read is not a Code attribute. The 6
attribute header bytes (attribute_name_index and attribute_length) are not taken into
account here.the labels of the method's code, or null if the attribute to be read
is not a Code attribute. labels)Overrides org. type attribute.
|
| protected ByteVector | write(final ClassWriter
the class to which this attribute must be added. This parameter can be used
to add the items that corresponds to this attribute to the constant pool of this class. classWriter, final byte[] the bytecode of the method corresponding to this Code attribute, or null
if this attribute is not a Code attribute. Corresponds to the 'code' field of the Code
attribute. code, final int the length of the bytecode of the method corresponding to this code
attribute, or 0 if this attribute is not a Code attribute. Corresponds to the 'code_length'
field of the Code attribute. codeLength, final int the maximum stack size of the method corresponding to this Code attribute, or
-1 if this attribute is not a Code attribute. maxStack, final int the maximum number of local variables of the method corresponding to this code
attribute, or -1 if this attribute is not a Code attribute. maxLocals)Overrides org. |
| resolution | back to summary |
|---|---|
| public int resolution The resolution state of the module. Must be one of | |
| RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT | back to summary |
|---|---|
| public static final int RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT The resolution state of a module meaning that the module is not available from the class-path by default. | |
| RESOLUTION_WARN_DEPRECATED | back to summary |
|---|---|
| public static final int RESOLUTION_WARN_DEPRECATED The resolution state of a module meaning the module is marked as deprecated. | |
| RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL | back to summary |
|---|---|
| public static final int RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL The resolution state of a module meaning the module is marked as deprecated and will be removed in a future release. | |
| RESOLUTION_WARN_INCUBATING | back to summary |
|---|---|
| public static final int RESOLUTION_WARN_INCUBATING The resolution state of a module meaning the module is not yet standardized, so in incubating mode. | |
| ModuleResolutionAttribute | back to summary |
|---|---|
| public ModuleResolutionAttribute(final int resolution) Constructs a new
| |
| ModuleResolutionAttribute | back to summary |
|---|---|
| public ModuleResolutionAttribute() Constructs an empty | |
| read | back to summary |
|---|---|
| protected Attribute read(final ClassReader classReader, final int offset, final int length, final char[] charBuffer, final int codeOffset, final Label[] labels) Overrides org. Doc from org. Reads a
| |
| write | back to summary |
|---|---|
| protected ByteVector write(final ClassWriter classWriter, final byte[] code, final int codeLength, final int maxStack, final int maxLocals) Overrides org. Doc from org. Returns the byte array form of the content of this attribute. The 6 header bytes (attribute_name_index and attribute_length) must not be added in the returned ByteVector.
| |