public final class Field extends FieldOrMethod
attributes, attributes_count, constant_pool, name_index, signature_indexaccess_flags| Constructor and Description |
|---|
Field(Field c)
Initialize from another object.
|
Field(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool) |
| Modifier and Type | Method and Description |
|---|---|
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..
|
copy_, dump, getAttributes, getConstantPool, getName, getNameIndex, getSignature, getSignatureIndex, setAttributes, setConstantPool, setNameIndex, setSignatureIndexgetAccessFlags, getModifiers, isAbstract, isAbstract, isFinal, isFinal, isInterface, isInterface, isNative, isNative, isPrivate, isPrivate, isProtected, isProtected, isPublic, isPublic, isStatic, isStatic, isStrictfp, isStrictfp, isSynchronized, isSynchronized, isTransient, isTransient, isVolatile, isVolatile, setAccessFlags, setModifierspublic Field(Field c)
public Field(int access_flags,
int name_index,
int signature_index,
Attribute[] attributes,
ConstantPool constant_pool)
access_flags - Access rights of fieldname_index - Points to field name in constant poolsignature_index - Points to encoded signatureattributes - Collection of attributesconstant_pool - Array of constantspublic void accept(Visitor v)
v - Visitor objectpublic final ConstantValue getConstantValue()
public final String toString()
public final Field copy(ConstantPool constant_pool)
public Type getType()
Copyright © 2018–2021 mhoffrogge. All rights reserved.