org.apache.bcel.classfile
public final class Field extends FieldOrMethod
Version: $Id: Field.java 152843 2002-12-08 16:04:38Z mdahm $
Constructor Summary | |
---|---|
Field(Field c)
Initialize from another object. | |
Field(int access_flags, int name_index, int signature_index, Attribute[] attributes, ConstantPool constant_pool) |
Method Summary | |
---|---|
void | accept(Visitor v)
Called by objects that are traversing the nodes of the tree implicitely
defined by the contents of a Java class. |
Field | copy(ConstantPool constant_pool) |
ConstantValue | getConstantValue() |
Type | getType() |
String | toString()
Return string representation close to declaration format,
`public static final short MAX = 100', e.g..
|
Parameters: access_flags Access rights of field name_index Points to field name in constant pool signature_index Points to encoded signature attributes Collection of attributes constant_pool Array of constants
Parameters: v Visitor object
Returns: deep copy of this field
Returns: constant value associated with this field (may be null)
Returns: type of field
Returns: String representation of field, including the signature.