| java.lang.Object org.cojen.classfile.Attribute
All known Subclasses: org.cojen.classfile.attribute.ExceptionsAttr, org.cojen.classfile.attribute.LineNumberTableAttr, org.cojen.classfile.attribute.SyntheticAttr, org.cojen.classfile.attribute.EnclosingMethodAttr, org.cojen.classfile.attribute.UnknownAttr, org.cojen.classfile.attribute.InnerClassesAttr, org.cojen.classfile.attribute.DeprecatedAttr, org.cojen.classfile.attribute.SourceFileAttr, org.cojen.classfile.attribute.LocalVariableTableAttr, org.cojen.classfile.attribute.ParameterAnnotationsAttr, org.cojen.classfile.attribute.CodeAttr, org.cojen.classfile.attribute.ConstantValueAttr, org.cojen.classfile.attribute.AnnotationsAttr, org.cojen.classfile.attribute.SignatureAttr,
Attribute | abstract public class Attribute (Code) | | This class corresponds to the attribute_info structure defined in section
4.7 of The Java Virtual Machine Specification.
author: Brian S O'Neill See Also: ClassFile |
CONSTANT_VALUE | final public static String CONSTANT_VALUE(Code) | | |
ENCLOSING_METHOD | final public static String ENCLOSING_METHOD(Code) | | |
LINE_NUMBER_TABLE | final public static String LINE_NUMBER_TABLE(Code) | | |
LOCAL_VARIABLE_TABLE | final public static String LOCAL_VARIABLE_TABLE(Code) | | |
RUNTIME_INVISIBLE_ANNOTATIONS | final public static String RUNTIME_INVISIBLE_ANNOTATIONS(Code) | | |
RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS | final public static String RUNTIME_INVISIBLE_PARAMETER_ANNOTATIONS(Code) | | |
RUNTIME_VISIBLE_ANNOTATIONS | final public static String RUNTIME_VISIBLE_ANNOTATIONS(Code) | | |
RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS | final public static String RUNTIME_VISIBLE_PARAMETER_ANNOTATIONS(Code) | | |
getAttributes | public Attribute[] getAttributes()(Code) | | Some attributes have sub-attributes. Default implementation returns an
empty array.
|
getConstantPool | public ConstantPool getConstantPool()(Code) | | Returns the ConstantPool that this attribute is defined against.
|
getLength | abstract public int getLength()(Code) | | Returns the length (in bytes) of this attribute in the class file.
|
getName | public String getName()(Code) | | Returns the name of this attribute.
|
writeDataTo | public void writeDataTo(DataOutput dout) throws IOException(Code) | | Write just the attribute specific data. The default implementation
writes nothing.
|
writeTo | final public void writeTo(DataOutput dout) throws IOException(Code) | | This method writes the 16 bit name constant index followed by the
32 bit attribute length, followed by the attribute specific data.
|
|
|