Package org.objectweb.asm.commons
Class ModuleTargetAttribute
- java.lang.Object
-
- org.objectweb.asm.Attribute
-
- org.objectweb.asm.commons.ModuleTargetAttribute
-
public final class ModuleTargetAttribute extends Attribute
A ModuleTarget attribute. This attribute is specific to the OpenJDK and may change in the future.- Author:
- Remi Forax
-
-
Constructor Summary
Constructors Constructor Description ModuleTargetAttribute()Constructs an emptyModuleTargetAttribute.ModuleTargetAttribute(String platform)Constructs a newModuleTargetAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Attributeread(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)protected ByteVectorwrite(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)-
Methods inherited from class org.objectweb.asm.Attribute
getLabels, isCodeAttribute, isUnknown
-
-
-
-
Field Detail
-
platform
public String platform
The name of the platform on which the module can run.
-
-
Constructor Detail
-
ModuleTargetAttribute
public ModuleTargetAttribute(String platform)
Constructs a newModuleTargetAttribute.- Parameters:
platform- the name of the platform on which the module can run.
-
ModuleTargetAttribute
public ModuleTargetAttribute()
Constructs an emptyModuleTargetAttribute. This object can be passed as a prototype to theClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)method.
-
-
Method Detail
-
read
protected Attribute read(ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, Label[] labels)
-
write
protected ByteVector write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
-
-