| com.sun.mirror.declaration.FieldDeclaration
All known Subclasses: org.eclipse.jdt.apt.core.internal.declaration.ASTBasedFieldDeclarationImpl, org.eclipse.jdt.apt.core.internal.declaration.FieldDeclarationImpl,
FieldDeclaration | public interface FieldDeclaration extends MemberDeclaration(Code) | | Represents a field of a type declaration.
author: Joseph D. Darcy author: Scott Seligman version: 1.2 04/04/20 since: 1.5 |
getConstantExpression | String getConstantExpression()(Code) | | Returns the text of a constant expression representing the
value of this field if this field is a compile-time constant.
Returns null otherwise.
The value will be of a primitive type or String.
The text returned is in a form suitable for representing the value
in source code.
the text of a constant expression if this field is acompile-time constant, or null otherwise |
getConstantValue | Object getConstantValue()(Code) | | Returns the value of this field if this field is a compile-time
constant. Returns null otherwise.
The value will be of a primitive type or String.
If the value is of a primitive type, it is wrapped in the
appropriate wrapper class (such as
Integer ).
the value of this field if this field is a compile-timeconstant, or null otherwise |
getType | TypeMirror getType()(Code) | | Returns the type of this field.
the type of this field |
|
|