FileDocCategorySizeDatePackage
FieldDeclaration.javaAPI DocJava SE 5 API1614Fri Aug 26 14:55:14 BST 2005com.sun.mirror.declaration

FieldDeclaration

public interface FieldDeclaration implements MemberDeclaration
Represents a field of a type declaration.
author
Joseph D. Darcy
author
Scott Seligman
version
1.2 04/04/20
since
1.5

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringgetConstantExpression()
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.

return
the text of a constant expression if this field is a compile-time constant, or null otherwise

public java.lang.ObjectgetConstantValue()
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 {@link Integer}).

return
the value of this field if this field is a compile-time constant, or null otherwise

public com.sun.mirror.type.TypeMirrorgetType()
Returns the type of this field.

return
the type of this field