public final class Field extends FieldOrMethod
Modifier and Type | Field and Description |
---|---|
static Field[] |
NoFields |
attributes, cpool, nameIndex, signatureIndex
Constructor and Description |
---|
Field(Field c) |
Field(int modifiers,
int nameIndex,
int signatureIndex,
Attribute[] attributes,
ConstantPool cpool) |
Modifier and Type | Method and Description |
---|---|
void |
accept(ClassVisitor v) |
ConstantValue |
getConstantValue() |
Type |
getType()
return the type of the field
|
java.lang.String |
toString()
Return string representation close to declaration format, eg: 'public static final short MAX = 100'
|
dump, getAnnotations, getAttributes, getConstantPool, getDeclaredSignature, getGenericSignature, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes
getModifiers, isAbstract, isBridge, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVarargs, isVolatile, setModifiers
public static final Field[] NoFields
public Field(Field c)
public Field(int modifiers, int nameIndex, int signatureIndex, Attribute[] attributes, ConstantPool cpool)
public void accept(ClassVisitor v)
public final ConstantValue getConstantValue()
public final java.lang.String toString()
toString
in class java.lang.Object
public Type getType()