Public Methods | |
abstract void | accept (Visitor v) |
Object | clone () |
abstract Attribute | copy (ConstantPool constant_pool) |
void | dump (DataOutputStream file) throws IOException |
final ConstantPool | getConstantPool () |
final int | getLength () |
final int | getNameIndex () |
final byte | getTag () |
final void | setConstantPool (ConstantPool constant_pool) |
final void | setLength (int length) |
final void | setNameIndex (int name_index) |
String | toString () |
abstract void | accept (Visitor v) |
Object | clone () |
abstract Attribute | copy (ConstantPool constant_pool) |
void | dump (DataOutputStream file) throws IOException |
final ConstantPool | getConstantPool () |
final int | getLength () |
final int | getNameIndex () |
final byte | getTag () |
final void | setConstantPool (ConstantPool constant_pool) |
final void | setLength (int length) |
final void | setNameIndex (int name_index) |
String | toString () |
Protected Attributes | |
int | name_index |
int | length |
byte | tag |
ConstantPool | constant_pool |
Private Methods | |
Attribute (byte tag, int name_index, int length, ConstantPool constant_pool) | |
Attribute (byte tag, int name_index, int length, ConstantPool constant_pool) | |
Static Private Methods | |
final Attribute | readAttribute (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError, InternalError |
final Attribute | readAttribute (DataInputStream file, ConstantPool constant_pool) throws IOException, ClassFormatError, InternalError |
Definition at line 27 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java.
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. |
|
Called by objects that are traversing the nodes of the tree implicitely defined by the contents of a Java class. I.e., the hierarchy of methods, fields, attributes, etc. spawns a tree of objects.
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. |
|
Use copy() if you want to have a deep copy(), i.e., with all references copied correctly.
Definition at line 54 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Use copy() if you want to have a deep copy(), i.e. with all references copied correctly.
Definition at line 54 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Unknown::copy(), Synthetic::copy(), SourceFile::copy(), Signature::copy(), PMGClass::copy(), LocalVariableTable::copy(), LineNumberTable::copy(), InnerClasses::copy(), ExceptionTable::copy(), Deprecated::copy(), ConstantValue::copy(), and Code::copy().
|
|
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. |
|
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. Referenced by JavaClass::copy(), Code::copy(), and FieldOrMethod::copy_().
|
|
Dump attribute to file stream in binary format.
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. Definition at line 75 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Dump attribute to file stream in binary format.
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. Definition at line 75 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by JavaClass::dump(), FieldOrMethod::dump(), and Code::dump().
|
|
Definition at line 84 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 84 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Code::Code(), ConstantValue::ConstantValue(), Deprecated::Deprecated(), ExceptionTable::ExceptionTable(), InnerClasses::InnerClasses(), LocalVariableTable::LocalVariableTable(), PMGClass::PMGClass(), Signature::Signature(), SourceFile::SourceFile(), Synthetic::Synthetic(), and Unknown::Unknown().
|
|
Definition at line 88 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 88 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Code::Code(), ConstantValue::ConstantValue(), Deprecated::Deprecated(), ExceptionTable::ExceptionTable(), InnerClasses::InnerClasses(), LocalVariableTable::LocalVariableTable(), PMGClass::PMGClass(), Signature::Signature(), SourceFile::SourceFile(), Synthetic::Synthetic(), and Unknown::Unknown().
|
|
Definition at line 92 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 92 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Code::Code(), ConstantValue::ConstantValue(), Deprecated::Deprecated(), ExceptionTable::ExceptionTable(), InnerClasses::InnerClasses(), LocalVariableTable::LocalVariableTable(), PMGClass::PMGClass(), Signature::Signature(), SourceFile::SourceFile(), Synthetic::Synthetic(), and Unknown::Unknown().
|
|
Definition at line 97 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 97 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Field::getConstantValue(), and ConstantValue::toString().
|
|
Definition at line 186 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 186 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 192 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 192 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 198 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Definition at line 198 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. |
|
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. Definition at line 204 of file src/de/fub/bytecode/classfile/Attribute.java. |
|
Reimplemented in Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, Unknown, Code, ConstantValue, Deprecated, ExceptionTable, InnerClasses, LineNumberTable, LocalVariableTable, PMGClass, Signature, SourceFile, Synthetic, and Unknown. Definition at line 204 of file lib/jpf/de/fub/bytecode/classfile/Attribute.java. Referenced by Method::toString(), LocalVariableTable::toString(), LineNumberTable::toString(), InnerClasses::toString(), Field::toString(), and Code::toString().
|