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, isSynthetic
public final boolean isConstant()
Variable.getConstantValue()
@Deprecated public final Object getValue()
Object getConstantValue()
.public final Object getConstantValue()
Variable.isConstant()
public final String getDeclaration()
getDeclaration
in class Field
public final boolean isEnumConstant()