Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


oracle.javatools.parser.java.v2.model
Interface JavaField

All Superinterfaces:
Element, JavaElement, JavaHasAnnotations, JavaHasName, JavaHasType, JavaMember, JavaVariable
All Known Subinterfaces:
SourceEnumConstant, SourceFieldVariable, SourceMemberVariable
All Known Implementing Classes:
AbstractField, WrapperField

public interface JavaField
extends JavaMember, JavaVariable

The JavaField is the compiled representation of a java field. If you want the syntactic (aka symbolic) representation of a java class, see JavaField.


Field Summary
static JavaField[] EMPTY_ARRAY
           

 

Method Summary
 java.lang.String getDescriptor()
           
 JavaField getFieldErasure()
          Similar to JavaMethod.getMethodErasure.
 java.lang.String getSignature()
           
 boolean isEnumConstant()
           

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMember
getOwningClass, getUniqueIdentifier, isAbstract, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaVariable
getConstantValue, isVarargs

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasType
getResolvedType, getUnresolvedType

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasName
getName

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasAnnotations
getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations

 

Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo

 

Field Detail

EMPTY_ARRAY

static final JavaField[] EMPTY_ARRAY

Method Detail

isEnumConstant

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

getDescriptor

java.lang.String getDescriptor()
Returns:
The VM-defined pre-jdk-1.5 descriptor.

getSignature

java.lang.String getSignature()
Returns:
The VM-defined jdk-1.5 signature.

getFieldErasure

JavaField getFieldErasure()
Similar to JavaMethod.getMethodErasure. Strips a JavaField of any parameterization, meaning any type arguments are removed, and the original JavaField is returned. E.g. if Foo has a JavaField 'field' with type 'A', then a Foo<String> instance has a JavaField 'field' with type String, and calling getFieldErasure on that last JavaField will return a JavaField with type 'A'.
Returns:
A JavaField without any parameterization

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.3.0)

E17493-04


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