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