Package org.objectweb.asm.commons
Class ModuleTargetAttribute
java.lang.Object
org.objectweb.asm.Attribute
org.objectweb.asm.commons.ModuleTargetAttribute
public final class ModuleTargetAttribute
extends org.objectweb.asm.Attribute
A ModuleTarget attribute. This attribute is specific to the OpenJDK and may change in the future.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe name of the platform on which the module can run.Fields inherited from class org.objectweb.asm.Attribute
type -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an emptyModuleTargetAttribute.ModuleTargetAttribute(String platform) Constructs a newModuleTargetAttribute. -
Method Summary
Modifier and TypeMethodDescriptionprotected org.objectweb.asm.Attributeread(org.objectweb.asm.ClassReader classReader, int offset, int length, char[] charBuffer, int codeOffset, org.objectweb.asm.Label[] labels) protected org.objectweb.asm.ByteVectorwrite(org.objectweb.asm.ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals) Methods inherited from class org.objectweb.asm.Attribute
getLabels, isCodeAttribute, isUnknown, read, readLabel, write
-
Field Details
-
platform
The name of the platform on which the module can run.
-
-
Constructor Details
-
ModuleTargetAttribute
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 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:
readin 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:
writein classorg.objectweb.asm.Attribute
-