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

E13403-04

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

All Superinterfaces:
Element, JavaElement, JavaHasAnnotations, JavaHasName, JavaHasType
All Known Subinterfaces:
JavaClass, JavaField, JavaIsGeneric, JavaMethod, JavaType, JavaTypeVariable, JavaWildcardType, SourceClass, SourceClassInitializer, SourceEnumConstant, SourceFieldDeclaration, SourceFieldVariable, SourceMember, SourceMemberVariable, SourceMethod, SourceTypeParameter
All Known Implementing Classes:
AbstractClass, AbstractField, AbstractMethod, AbstractType, BaseFileProvider.BaseClass, CastedMethod, oracle.javatools.parser.java.v2.classfile.ClClass, PrimitiveType, QuickComponent, QuickMethod, WrapperClass, WrapperField, WrapperMethod

public interface JavaMember
extends JavaElement, JavaHasType, JavaHasName, JavaHasAnnotations

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 JavaMember[] EMPTY_ARRAY
           
 
Method Summary
 JavaClass getOwningClass()
           
 java.lang.String getUniqueIdentifier()
          Gets the unique identifier for this declaration.
 boolean isAbstract()
           
 boolean isPackagePrivate()
           
 boolean isPrivate()
           
 boolean isProtected()
           
 boolean isPublic()
           
 boolean isStatic()
           
 
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 JavaMember[] EMPTY_ARRAY
Method Detail

getOwningClass

JavaClass getOwningClass()
Returns:
The owning class. If this is an instance of a generic field, then this will return an instance of the owning class as well. For example, consider:
class C<E>
{
E field;

{
C generic = new C();
generic.field = null;

C<String> specific = new C<String>();
specific.field = null;
}
}

If this instance represents the member field accessed by "generic.field", then getOwningClass will return the type for "C".

If this instance represents the member field accessed by "specific.field", then getOwningClass will return the type for "C<String>".

Further, the expressions "generic.field" and "specific.field" do not refer to the same JavaField instance.


isPublic

boolean isPublic()
Returns:
True if element is modified with "final".

isProtected

boolean isProtected()
Returns:
True if element is modified with "protected".

isPrivate

boolean isPrivate()
Returns:
True if element is modified with "private".

isStatic

boolean isStatic()
Returns:
True if element is modified with "static".

isAbstract

boolean isAbstract()
Returns:
True if element is modified with "abstract".

isPackagePrivate

boolean isPackagePrivate()
Returns:
True if this member is not modified with any of: "public", "protected", or "public".

getUniqueIdentifier

java.lang.String getUniqueIdentifier()
Gets the unique identifier for this declaration. Two members are equal iff their unique identifiers are equal.

Returns:
The unique identifier.

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

E13403-04

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