public final class ModuleHashesAttribute
extends org.objectweb.asm.Attribute
| Modifier and Type | Field and Description |
|---|---|
String |
algorithm
The name of the hashing algorithm.
|
List<byte[]> |
hashes
The hash of the modules in
modules. |
List<String> |
modules
A list of module names.
|
| Constructor and Description |
|---|
ModuleHashesAttribute()
Constructs an empty
ModuleHashesAttribute. |
ModuleHashesAttribute(String algorithm,
List<String> modules,
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 String algorithm
public ModuleHashesAttribute(String algorithm, List<String> modules, 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.Attributeprotected org.objectweb.asm.ByteVector write(org.objectweb.asm.ClassWriter classWriter,
byte[] code,
int codeLength,
int maxStack,
int maxLocals)
write in class org.objectweb.asm.AttributeCopyright © 2021. All rights reserved.