Package org.objectweb.asm.commons
Class ModuleResolutionAttribute
java.lang.Object
org.objectweb.asm.Attribute
org.objectweb.asm.commons.ModuleResolutionAttribute
public final class ModuleResolutionAttribute
extends org.objectweb.asm.Attribute
A ModuleResolution attribute. This attribute is specific to the OpenJDK and may change in the
future.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint
The resolution state of the module.static final int
The resolution state of a module meaning that the module is not available from the class-path by default.static final int
The resolution state of a module meaning the module is marked as deprecated.static final int
The resolution state of a module meaning the module is marked as deprecated and will be removed in a future release.static final int
The resolution state of a module meaning the module is not yet standardized, so in incubating mode.Fields inherited from class org.objectweb.asm.Attribute
type
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs an emptyModuleResolutionAttribute
.ModuleResolutionAttribute
(int resolution) Constructs a newModuleResolutionAttribute
. -
Method Summary
Modifier and TypeMethodDescriptionprotected 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) Methods inherited from class org.objectweb.asm.Attribute
getLabels, isCodeAttribute, isUnknown
-
Field Details
-
RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULT
public static final int RESOLUTION_DO_NOT_RESOLVE_BY_DEFAULTThe resolution state of a module meaning that the module is not available from the class-path by default.- See Also:
-
RESOLUTION_WARN_DEPRECATED
public static final int RESOLUTION_WARN_DEPRECATEDThe resolution state of a module meaning the module is marked as deprecated.- See Also:
-
RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
public static final int RESOLUTION_WARN_DEPRECATED_FOR_REMOVALThe resolution state of a module meaning the module is marked as deprecated and will be removed in a future release.- See Also:
-
RESOLUTION_WARN_INCUBATING
public static final int RESOLUTION_WARN_INCUBATINGThe resolution state of a module meaning the module is not yet standardized, so in incubating mode.- See Also:
-
resolution
public int resolutionThe resolution state of the module. Must be one ofRESOLUTION_WARN_DEPRECATED
,RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
, andRESOLUTION_WARN_INCUBATING
.
-
-
Constructor Details
-
ModuleResolutionAttribute
public ModuleResolutionAttribute(int resolution) Constructs a newModuleResolutionAttribute
.- Parameters:
resolution
- the resolution state of the module. Must be one ofRESOLUTION_WARN_DEPRECATED
,RESOLUTION_WARN_DEPRECATED_FOR_REMOVAL
, andRESOLUTION_WARN_INCUBATING
.
-
ModuleResolutionAttribute
public ModuleResolutionAttribute()Constructs an emptyModuleResolutionAttribute
. This object can be passed as a prototype to theClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)
method.
-
-
Method Details
-
read
protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, org.objectweb.asm.Label[] labels) - Overrides:
read
in classorg.objectweb.asm.Attribute
-
write
protected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals) - Overrides:
write
in classorg.objectweb.asm.Attribute
-