public final class ModuleHashesAttribute
extends org.objectweb.asm.Attribute
Modifier and Type | Field and Description |
---|---|
java.lang.String |
algorithm |
java.util.List<byte[]> |
hashes |
java.util.List<java.lang.String> |
modules |
Constructor and Description |
---|
ModuleHashesAttribute()
Constructs an empty attribute that can be used as prototype to be passed as argument of the method
ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int) . |
ModuleHashesAttribute(java.lang.String algorithm,
java.util.List<java.lang.String> modules,
java.util.List<byte[]> hashes)
Constructs an attribute with a hashing algorithm, a list of module names, and a list of the same
length of hashes.
|
Modifier and Type | Method and Description |
---|---|
protected org.objectweb.asm.Attribute |
read(org.objectweb.asm.ClassReader cr,
int off,
int len,
char[] buf,
int codeOff,
org.objectweb.asm.Label[] labels) |
protected org.objectweb.asm.ByteVector |
write(org.objectweb.asm.ClassWriter cw,
byte[] code,
int len,
int maxStack,
int maxLocals) |
public java.lang.String algorithm
public java.util.List<java.lang.String> modules
public java.util.List<byte[]> hashes
public ModuleHashesAttribute(java.lang.String algorithm, java.util.List<java.lang.String> modules, java.util.List<byte[]> hashes)
algorithm
- the hashing algorithm name.modules
- a list of module namehashes
- a list of hash, one for each module name.public ModuleHashesAttribute()
ClassReader.accept(org.objectweb.asm.ClassVisitor, Attribute[], int)
.protected org.objectweb.asm.Attribute read(org.objectweb.asm.ClassReader cr, int off, int len, char[] buf, int codeOff, org.objectweb.asm.Label[] labels)
read
in class org.objectweb.asm.Attribute
protected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)
write
in class org.objectweb.asm.Attribute