|
org.netbeans.modules.classfile/1 1.19 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.modules.classfile.Field
org.netbeans.modules.classfile.Variable
public final class Variable
A Java field. Unfortunately, the word "field" is generally used in the Java documentation to mean either a variable, or both variables and methods. This class only describes variables.
| Method Summary | |
|---|---|
Object |
getConstantValue()
Returns the value object of this variable if it is a constant, otherwise null. |
String |
getDeclaration()
Return a string in the form " |
Object |
getValue()
Deprecated. replaced by Object getConstantValue(). |
boolean |
isConstant()
Returns true if the variable is a constant; that is, a final static variable. |
boolean |
isEnumConstant()
Returns true if this field defines an enum constant. |
String |
toString()
|
| Methods inherited from class org.netbeans.modules.classfile.Field |
|---|
getAccess, getAnnotation, getAnnotations, getAttributes, getClassFile, getDescriptor, getName, getTypeSignature, isAnnotationPresent, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynthetic |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public final boolean isConstant()
getConstantValue()@Deprecated public final Object getValue()
Object getConstantValue().
public final Object getConstantValue()
isConstant()public final String getDeclaration()
getDeclaration in class Fieldpublic final boolean isEnumConstant()
public String toString()
|
org.netbeans.modules.classfile/1 1.19 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||