|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rit.classfile.FieldReference
edu.rit.classfile.FieldDescription
public abstract class FieldDescription
Class FieldDescription encapsulates the information needed to refer to or to describe a field. This includes the field's class, name, type, access flags, and constant value if any. In the documentation below, the term "described field" means "the field described by this field description object."
Method Summary | |
---|---|
Object |
getConstantValue()
Returns the described field's constant value. |
boolean |
isFinal()
Returns true if the described field is final, that is, may not be changed after initialization. |
boolean |
isPackageScoped()
Returns true if the described field has default access (also known as package scoped), that is, may be accessed only from inside its defining package or inside its defining class. |
boolean |
isPrivate()
Returns true if the described field is private, that is, may be accessed only from inside its defining class. |
boolean |
isProtected()
Returns true if the described field is protected, that is, may be accessed only from inside its defining package, inside its defining class, or inside subclasses of its defining class. |
boolean |
isPublic()
Returns true if the described field is public, that is, may be accessed from inside and outside its defining package. |
boolean |
isStatic()
Returns true if the described field is static. |
boolean |
isTransient()
Returns true if the described field is transient, that is, not written or read by a persistent object manager. |
boolean |
isVolatile()
Returns true if the described field is volatile, that is, cannot be cached. |
Methods inherited from class edu.rit.classfile.FieldReference |
---|
equals, getClassReference, getFieldDescriptor, getFieldName, getFieldType, hashCode, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isPublic()
public boolean isPrivate()
public boolean isProtected()
public boolean isPackageScoped()
public boolean isStatic()
public boolean isFinal()
public boolean isVolatile()
public boolean isTransient()
public Object getConstantValue()
Field's Type | Returned Object |
java.lang.String | String
|
int | Integer
|
short | Short
|
char | Character
|
byte | Byte
|
boolean | Boolean
|
float | Float
|
long | Long
|
double | Double
|
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |