net.sf.clirr.core.spi
Interface Field

All Superinterfaces:
Named, Scoped

public interface Field
extends Named, Scoped

Describes a field of a class.


Method Summary
 java.lang.Object getConstantValue()
          Returns the constant value of this field.
 JavaType getType()
          The type of this field.
 boolean isDeprecated()
          Whether the field is deprecated.
 boolean isFinal()
          Whether the field is declared as final.
 boolean isStatic()
          Whether the field is declared as static.
 
Methods inherited from interface net.sf.clirr.core.spi.Named
getName
 
Methods inherited from interface net.sf.clirr.core.spi.Scoped
getDeclaredScope, getEffectiveScope
 

Method Detail

getType

JavaType getType()
The type of this field.


isFinal

boolean isFinal()
Whether the field is declared as final.


isStatic

boolean isStatic()
Whether the field is declared as static.


isDeprecated

boolean isDeprecated()
Whether the field is deprecated.


getConstantValue

java.lang.Object getConstantValue()
Returns the constant value of this field. The constant value is an Object if the field is static and final and the java compiler could calculate the value at compilation time.

Returns:
the constant value or null if the compiler could not calculate the value at compilation time


Copyright © 2003-2005 Lars Kühne. All Rights Reserved.