|
" 2013 FRC Java 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 | |
|---|---|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one. |
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 |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean equals(Object other)
Object
The equals method implements an equivalence relation:
x,
x.equals(x) should return true.
x and
y, x.equals(y) should return
true if and only if y.equals(x) returns
true.
x,
y, and z, if x.equals(y)
returns true and y.equals(z) returns
true, then x.equals(z) should return
true.
x
and y, multiple invocations of x.equals(y)
consistently return true or consistently return
false, provided no information used in
equals comparisons on the object is modified.
x,
x.equals(null) should return false.
The equals method for class Object implements
the most discriminating possible equivalence relation on objects;
that is, for any reference values x and y,
this method returns true if and only if x and
y refer to the same object (x==y has the
value true).
equals in class Objectother - the reference object with which to compare.
true if this object is the same as the obj
argument; false otherwise.Boolean.hashCode(),
Hashtablepublic 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
|
" 2013 FRC Java API " |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||