public final class ModuleResolutionAttribute
extends org.objectweb.asm.Attribute
Modifier and Type | Field and Description |
---|---|
int |
resolution
The resolution state of the module.
|
static 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.
|
static int |
RESOLUTION_WARN_DEPRECATED
The resolution state of a module meaning the module is marked as deprecated.
|
static 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.
|
static int |
RESOLUTION_WARN_INCUBATING
The resolution state of a module meaning the module is not yet standardized, so in incubating
mode.
|
Constructor and Description |
---|
ModuleResolutionAttribute()
Constructs an empty
ModuleResolutionAttribute . |
ModuleResolutionAttribute(int resolution)
Constructs a new
ModuleResolutionAttribute . |
Modifier and Type | Method and Description |
---|---|
protected org.objectweb.asm.Attribute |
read(org.objectweb.asm.ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeOffset,
org.objectweb.asm.Label[] labels) |
protected org.objectweb.asm.ByteVector |
write(org.objectweb.asm.ClassWriter classWriter,
byte[] code,
int codeLength,
int maxStack,
int maxLocals) |
public static final int RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT
public static final int RESOLUTION_WARN_DEPRECATED
public static final int RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
public static final int RESOLUTION_WARN_INCUBATING
public int resolution
RESOLUTION_WARN_DEPRECATED
, RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
, and RESOLUTION_WARN_INCUBATING
.public ModuleResolutionAttribute(int resolution)
ModuleResolutionAttribute
.resolution
- the resolution state of the module. Must be one of RESOLUTION_WARN_DEPRECATED
, RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
, and RESOLUTION_WARN_INCUBATING
.public ModuleResolutionAttribute()
ModuleResolutionAttribute
. This object can be passed as a prototype
to the ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)
method.protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, org.objectweb.asm.Label[] labels)
read
in class org.objectweb.asm.Attribute
protected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
write
in class org.objectweb.asm.Attribute