Package org.objectweb.asm.commons
Class ModuleHashesAttribute
- java.lang.Object
-
- org.objectweb.asm.Attribute
-
- org.objectweb.asm.commons.ModuleHashesAttribute
-
public final class ModuleHashesAttribute extends Attribute
A ModuleHashes attribute. This attribute is specific to the OpenJDK and may change in the future.- Author:
- Remi Forax
-
-
Constructor Summary
Constructors Constructor Description ModuleHashesAttribute()Constructs an emptyModuleHashesAttribute.ModuleHashesAttribute(String algorithm, List<String> modules, List<byte[]> hashes)Constructs a newModuleHashesAttribute.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Attributeread(ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, 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
-
-
-
-
Constructor Detail
-
ModuleHashesAttribute
public ModuleHashesAttribute(String algorithm, List<String> modules, List<byte[]> hashes)
Constructs a newModuleHashesAttribute.- Parameters:
algorithm- the name of the hashing algorithm.modules- a list of module names.hashes- the hash of the modules in 'modules'. The two lists must have the same size.
-
ModuleHashesAttribute
public ModuleHashesAttribute()
Constructs an emptyModuleHashesAttribute. 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 codeAttributeOffset, Label[] labels)
-
write
protected ByteVector write(ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
-
-