Top Description Fields Constructors Methods
org.aspectj.apache.bcel.classfile

public final Class Field

extends FieldOrMethod
Class Inheritance
Imports
java.io.DataInputStream, .IOException, org.aspectj.apache.bcel.generic.Type

This class represents the field info structure, i.e., the representation for a variable in the class. See JVM specification for details.
Author
M. Dahm
Version
$Id: Field.java,v 1.6 2009/09/15 03:33:52 aclement Exp $

Field Summary

Modifier and TypeField and Description
private Type
public static final Field[]
Inherited from org.aspectj.apache.bcel.classfile.FieldOrMethod:
attributescpoolnameIndexsignatureIndex

Constructor Summary

AccessConstructor and Description
private
public
pack-priv
public
Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)

Method Summary

Modifier and TypeMethod and Description
public void
public final ConstantValue

Returns:

constant value associated with this field (may be null)
getConstantValue
()

public Type
getType()

return the type of the field

public final String
toString()

Overrides java.lang.Object.toString.

Return string representation close to declaration format, eg: 'public static final short MAX = 100'
Inherited from org.aspectj.apache.bcel.classfile.FieldOrMethod:
dumpgetAnnotationsgetAttributesgetConstantPoolgetDeclaredSignaturegetGenericSignaturegetNamegetNameIndexgetSignaturegetSignatureIndexsetAttributes

Field Detail

fieldTypeback to summary
private Type fieldType
NoFieldsback to summary
public static final Field[] NoFields

Constructor Detail

Fieldback to summary
private Field()
Fieldback to summary
public Field(Field c)
Fieldback to summary
pack-priv Field(DataInputStream dis, ConstantPool cpool) throws IOException
Fieldback to summary
public Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)

Method Detail

acceptback to summary
public void accept(ClassVisitor v)

Implements org.aspectj.apache.bcel.classfile.Node.accept.

getConstantValueback to summary
public final ConstantValue getConstantValue()
Returns:ConstantValue

constant value associated with this field (may be null)

getTypeback to summary
public Type getType()

return the type of the field

toStringback to summary
public final String toString()

Overrides java.lang.Object.toString.

Return string representation close to declaration format, eg: 'public static final short MAX = 100'

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override