public final class ModuleResolutionAttribute
extends org.objectweb.asm.Attribute
Modifier and Type | Field and Description |
---|---|
int |
resolution |
static int |
RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT
Resolution state of a module meaning that the module is not available from the class-path by
default.
|
static int |
RESOLUTION_WARN_DEPRECATED
Resolution state of a module meaning the module is marked as deprecated.
|
static int |
RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
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
Resolution state of a module meaning the module is not yet standardized, so in incubating mode.
|
Constructor and Description |
---|
ModuleResolutionAttribute()
Constructs an empty attribute that can be used as prototype to be passed as argument of the method
ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int) . |
ModuleResolutionAttribute(int resolution)
Constructs an attribute with a resolution state value.
|
Modifier and Type | Method and Description |
---|---|
protected org.objectweb.asm.Attribute |
read(org.objectweb.asm.ClassReader cr,
int off,
int len,
char[] buf,
int codeOff,
org.objectweb.asm.Label[] labels) |
protected org.objectweb.asm.ByteVector |
write(org.objectweb.asm.ClassWriter cw,
byte[] code,
int len,
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
public ModuleResolutionAttribute(int resolution)
resolution
- the resolution state among RESOLUTION_WARN_DEPRECATED
, RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
, and RESOLUTION_WARN_INCUBATING
.public ModuleResolutionAttribute()
ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)
.protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader cr, int off, int len, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
read
in class org.objectweb.asm.Attribute
protected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)
write
in class org.objectweb.asm.Attribute