public final class ModuleHashesAttribute extends 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. |
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(ClassVisitor, Attribute[], int) method.Copyright © 2019. All rights reserved.