|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.squawk.Member
com.sun.squawk.Field
public final class Field
An instance of Field encapsulates the information about the
field of a class. This includes the name of the field, its type, access
flags etc.
| Method Summary | |
|---|---|
long |
getPrimitiveConstantValue()
Gets the primitive constant value of this static field. |
String |
getStringConstantValue()
Gets the String constant value of this static field. |
Klass |
getType()
Gets this declared type of this field. |
boolean |
hasConstant()
Determines if this field had a ConstantValue attribute in its class file definition. |
boolean |
isTransient()
Determines if this field is transient. |
| Methods inherited from class com.sun.squawk.Member |
|---|
getDefiningClass, getFullyQualifiedName, getModifiers, getName, getOffset, hashCode, isAccessibleFrom, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isSourceSynthetic, isStatic, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isTransient()
public boolean hasConstant()
public Klass getType()
public String getStringConstantValue()
throws IllegalArgumentException
IllegalArgumentException - if this field did not have a ConstantValue
attribute in its class file or if the constant is not a String
public long getPrimitiveConstantValue()
throws IllegalArgumentException
IllegalArgumentException - if this field did not have a ConstantValue
attribute in its class file or if the constant is not a primitive value
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||