Modifier and Type | Field and Description |
---|---|
public String | algorithm
The name of the hashing algorithm. |
public List | |
public List | modules
A list of module names. |
Access | Constructor and Description |
---|---|
public | ModuleHashesAttribute(final String
the name of the hashing algorithm. algorithm, final List<String> a list of module names. modules, final List<byte[]> the hash of the modules in 'modules'. The two lists must have the same size. hashes)Constructs a new |
public |
Modifier and Type | Method and Description |
---|---|
protected Attribute | read(final ClassReader
the class that contains the attribute to be read. classReader, final int index of the first byte of the attribute's content in offset, final int ClassReader . The 6
attribute header bytes (attribute_name_index and attribute_length) are not taken into
account here.the length of the attribute's content (excluding the 6 attribute header bytes). length, final char[] the buffer to be used to call the ClassReader methods requiring a
'charBuffer' parameter. charBuffer, final int index of the first byte of content of the enclosing Code attribute
in codeAttributeOffset, final Label[] ClassReader , or -1 if the attribute to be read is not a Code attribute. The 6
attribute header bytes (attribute_name_index and attribute_length) are not taken into
account here.the labels of the method's code, or null if the attribute to be read
is not a Code attribute. labels)Overrides jdk. type attribute.
|
protected ByteVector | write(final ClassWriter
the class to which this attribute must be added. This parameter can be used
to add the items that corresponds to this attribute to the constant pool of this class. classWriter, final byte[] the bytecode of the method corresponding to this Code attribute, or null
if this attribute is not a Code attribute. Corresponds to the 'code' field of the Code
attribute. code, final int the length of the bytecode of the method corresponding to this code
attribute, or 0 if this attribute is not a Code attribute. Corresponds to the 'code_length'
field of the Code attribute. codeLength, final int the maximum stack size of the method corresponding to this Code attribute, or
-1 if this attribute is not a Code attribute. maxStack, final int the maximum number of local variables of the method corresponding to this code
attribute, or -1 if this attribute is not a Code attribute. maxLocals)
Returns the byte array form of the content of this attribute.
|
algorithm | back to summary |
---|---|
public String algorithm The name of the hashing algorithm. |
hashes | back to summary |
---|---|
public List<byte[]> hashes The hash of the modules in |
modules | back to summary |
---|---|
public List<String> modules A list of module names. |
ModuleHashesAttribute | back to summary |
---|---|
public ModuleHashesAttribute(final String algorithm, final List<String> modules, final List<byte[]> hashes) Constructs a new |
ModuleHashesAttribute | back to summary |
---|---|
public ModuleHashesAttribute() Constructs an empty |
read | back to summary |
---|---|
protected Attribute read(final ClassReader classReader, final int offset, final int length, final char[] charBuffer, final int codeAttributeOffset, final Label[] labels) Overrides jdk. Doc from jdk. Reads a
|
write | back to summary |
---|---|
protected ByteVector write(final ClassWriter classWriter, final byte[] code, final int codeLength, final int maxStack, final int maxLocals) Overrides jdk. Doc from jdk. Returns the byte array form of the content of this attribute. The 6 header bytes (attribute_name_index and attribute_length) must not be added in the returned ByteVector.
|