public final class ModuleHashesAttribute
extends org.objectweb.asm.Attribute
Modifier and Type | Field and Description |
---|---|
java.lang.String |
algorithm
The name of the hashing algorithm.
|
java.util.List<byte[]> |
hashes
The hash of the modules in
modules . |
java.util.List<java.lang.String> |
modules
A list of module names.
|
Constructor and Description |
---|
ModuleHashesAttribute()
Constructs an empty
ModuleHashesAttribute . |
ModuleHashesAttribute(java.lang.String algorithm,
java.util.List<java.lang.String> modules,
java.util.List<byte[]> hashes)
Constructs a new
ModuleHashesAttribute . |
Modifier and Type | Method and Description |
---|---|
protected org.objectweb.asm.Attribute |
read(org.objectweb.asm.ClassReader classReader,
int offset,
int length,
char[] charBuffer,
int codeAttributeOffset,
org.objectweb.asm.Label[] labels) |
protected org.objectweb.asm.ByteVector |
write(org.objectweb.asm.ClassWriter classWriter,
byte[] code,
int codeLength,
int maxStack,
int maxLocals) |
public java.lang.String algorithm
public java.util.List<java.lang.String> modules
public java.util.List<byte[]> hashes
modules
. The two lists must have the same size.public ModuleHashesAttribute(java.lang.String algorithm, java.util.List<java.lang.String> modules, java.util.List<byte[]> hashes)
ModuleHashesAttribute
.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.public ModuleHashesAttribute()
ModuleHashesAttribute
. This object can be passed as a prototype to
the ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)
method.protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader classReader, int offset, int length, char[] charBuffer, int codeAttributeOffset, org.objectweb.asm.Label[] labels)
read
in class org.objectweb.asm.Attribute
protected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter classWriter, byte[] code, int codeLength, int maxStack, int maxLocals)
write
in class org.objectweb.asm.Attribute