public class SignatureAttr extends Attribute
CODE, CONSTANT_VALUE, DEPRECATED, ENCLOSING_METHOD, EXCEPTIONS, INNER_CLASSES, LINE_NUMBER_TABLE, LOCAL_VARIABLE_TABLE, RUNTIME_INVISIBLE_ANNOTATIONS, RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS, RUNTIME_VISIBLE_ANNOTATIONS, RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS, SIGNATURE, SOURCE_FILE, STACK_MAP_TABLE, SYNTHETIC
Constructor and Description |
---|
SignatureAttr(ConstantPool cp,
ConstantUTFInfo signature) |
SignatureAttr(ConstantPool cp,
String name,
ConstantUTFInfo signature) |
SignatureAttr(ConstantPool cp,
String name,
int length,
DataInput din) |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Returns the length of the signature attribute, which is 2 bytes.
|
ConstantUTFInfo |
getSignature()
Returns the signature.
|
void |
writeDataTo(DataOutput dout)
Write just the attribute specific data.
|
getAttributes, getConstantPool, getName, getNameConstant, readFrom, skipBytes, writeTo
public SignatureAttr(ConstantPool cp, ConstantUTFInfo signature)
public SignatureAttr(ConstantPool cp, String name, ConstantUTFInfo signature)
public SignatureAttr(ConstantPool cp, String name, int length, DataInput din) throws IOException
IOException
public ConstantUTFInfo getSignature()
public int getLength()
public void writeDataTo(DataOutput dout) throws IOException
Attribute
writeDataTo
in class Attribute
IOException
Copyright © 2004-2015 Cojen. All Rights Reserved.