Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


javax.ide.model.java.declaration
Interface FieldD

All Superinterfaces:
Declaration, HasAnnotationsD, HasNameD, HasTypeD, MemberD

public interface FieldD
extends MemberD, HasNameD, HasTypeD, HasAnnotationsD

Represents a field or enum constant.


Nested Class Summary

 

Nested classes/interfaces inherited from interface javax.ide.model.java.declaration.Declaration
Declaration.DeclarationKind

 

Method Summary
 java.lang.Object getConstantValue()
          Gets the constant value of this field, as defined by the JVMS.
 boolean isEnumConstant()
          True if this is an enum constant.
 boolean isTransient()
          True if this is modified with "transient".
 boolean isVolatile()
          True if this is modified with "volatile".

 

Methods inherited from interface javax.ide.model.java.declaration.MemberD
getEnclosingClass, getModifiers, isFinal, isPrivate, isProtected, isPublic, isStatic

 

Methods inherited from interface javax.ide.model.java.declaration.HasNameD
getName

 

Methods inherited from interface javax.ide.model.java.declaration.HasTypeD
getType

 

Methods inherited from interface javax.ide.model.java.declaration.HasAnnotationsD
getAnnotations

 

Methods inherited from interface javax.ide.model.java.declaration.Declaration
getDeclarationKind, getPosition, isSynthetic

 

Method Detail

isEnumConstant

boolean isEnumConstant()
True if this is an enum constant.
Returns:
True if this is an enum constant.

isVolatile

boolean isVolatile()
True if this is modified with "volatile".
Returns:
True if this is modified with "volatile".

isTransient

boolean isTransient()
True if this is modified with "transient".
Returns:
True if this is modified with "transient".

getConstantValue

java.lang.Object getConstantValue()
Gets the constant value of this field, as defined by the JVMS.
Returns:
Gets the constant value of this field:
  • A value of primitive type gets returned as an instance of the appropriate wrapper class. (e.g. Integer)
  • A string value gets returned as a String instance.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.9.0)

E52944-01


Copyright © 1997, 2015, Oracle. All rights reserved.