org.cojen.classfile.attribute
Class SignatureAttr
java.lang.Object
org.cojen.classfile.Attribute
org.cojen.classfile.attribute.SignatureAttr
public class SignatureAttr
- extends Attribute
This class corresponds to the signature attribute structure, which is used
to support generics.
- Author:
- Brian S O'Neill
Fields inherited from class org.cojen.classfile.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, SYNTHETIC |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SignatureAttr
public SignatureAttr(ConstantPool cp,
ConstantUTFInfo signature)
SignatureAttr
public SignatureAttr(ConstantPool cp,
String name,
ConstantUTFInfo signature)
SignatureAttr
public SignatureAttr(ConstantPool cp,
String name,
int length,
DataInput din)
throws IOException
- Throws:
IOException
getSignature
public ConstantUTFInfo getSignature()
- Returns the signature.
getLength
public int getLength()
- Returns the length of the signature attribute, which is 2 bytes.
- Specified by:
getLength
in class Attribute
writeDataTo
public void writeDataTo(DataOutput dout)
throws IOException
- Description copied from class:
Attribute
- Write just the attribute specific data. The default implementation
writes nothing.
- Overrides:
writeDataTo
in class Attribute
- Throws:
IOException
Copyright © 2004-2011 Brian S O'Neill. All Rights Reserved.