public final class Variable extends Field
| Modifier and Type | Method and Description |
|---|---|
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() |
getAccess, getAnnotation, getAnnotations, getAttributes, getClassFile, getDescriptor, getName, getTypeSignature, isAnnotationPresent, isDeprecated, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSyntheticpublic 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()
Built on May 22 2013. | Portions Copyright 1997-2013 Oracle. All rights reserved.