|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.javatools.parser.java.v2.common.AbstractElement oracle.javatools.parser.java.v2.common.AbstractField oracle.javatools.parser.java.v2.common.WrapperField
public abstract class WrapperField
Skeleton implementation of an object wrapping a field.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
---|
JavaPreferences.MemberOrder |
Field Summary | |
---|---|
protected JavaField |
thing
The underlying thing. |
Fields inherited from interface oracle.javatools.parser.java.v2.model.JavaField |
---|
EMPTY_ARRAY |
Fields inherited from interface oracle.javatools.parser.java.v2.JavaOperators |
---|
OPT_ADD, OPT_ADDASG, OPT_AND, OPT_ANNOTATION, OPT_ARRAYCONST, OPT_ASG, OPT_base, OPT_BITAND, OPT_BITANDASG, OPT_BITNOT, OPT_BITOR, OPT_BITORASG, OPT_BITXOR, OPT_BITXORASG, OPT_CLASS_LITERAL, OPT_COND, OPT_DEREF, OPT_DIV, OPT_DIVASG, OPT_DOT, OPT_EQ, OPT_GE, OPT_GT, OPT_INSTANCEOF, OPT_invalid, OPT_INVOKE, OPT_LE, OPT_LIST, OPT_LITERAL, OPT_LSH, OPT_LSHASG, OPT_LT, OPT_max, OPT_MINUS, OPT_MINUSASG, OPT_MOD, OPT_MODASG, OPT_MUL, OPT_MULASG, OPT_NEGATIVE, OPT_NESTEXP, OPT_NEWARRAY, OPT_NEWOBJECT, OPT_NOT, OPT_NOTEQ, OPT_OR, OPT_POSITIVE, OPT_POSTDEC, OPT_POSTINC, OPT_precedence, OPT_PREDEC, OPT_PREINC, OPT_QUALIFIED_SUPER, OPT_QUALIFIED_THIS, OPT_RSH, OPT_RSHASG, OPT_SIMPLE_NAME, OPT_tokens, OPT_TYPE, OPT_TYPECAST, OPT_URSH, OPT_URSHASG, OPT_words |
Constructor Summary | |
---|---|
protected |
WrapperField(JavaField thing)
|
Method Summary | |
---|---|
java.lang.Object |
getConstantValue()
TODO: What about static final fields of enum type? |
java.util.Collection |
getDeclaredAnnotations()
Retrieves all the annotations declared on this element. |
int |
getElementKind()
|
JavaField |
getFieldErasure()
Similar to JavaMethod.getMethodErasure. |
JavaFile |
getFile()
|
int |
getModifiers()
|
java.lang.String |
getName()
|
JavaElement |
getOwner()
TODO: Document me! |
JavaClass |
getOwningClass()
|
JavaType |
getResolvedType()
A JavaField instance will return the field's type. |
SourceElement |
getSourceElement()
|
UnresolvedType |
getUnresolvedType()
Information about a type that has not been resolved. |
boolean |
isDeprecated()
|
boolean |
isHidden()
|
boolean |
isSourceElement()
|
java.lang.String |
printCompiledInfo()
Debugging function for printing out compiled information. |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractField |
---|
equals, getDescriptor, getSignature, getUniqueIdentifier, hashCode, isEnumConstant, isVarargs |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractElement |
---|
clearCompiledInfo, getActualTypeArguments, getAnnotation, getAnnotations, getDeclaredAnnotation, getSourceSymbol, getTypeParameters, hasActualTypeArguments, hasTypeParameters, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, isSynthetic, isTransient |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMember |
---|
isAbstract, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasAnnotations |
---|
getAnnotation, getAnnotations, getDeclaredAnnotation |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement |
---|
isFinal, isSynthetic |
Field Detail |
---|
protected final JavaField thing
Constructor Detail |
---|
protected WrapperField(JavaField thing)
Method Detail |
---|
public JavaFile getFile()
getFile
in interface JavaElement
getFile
in class AbstractField
public int getModifiers()
getModifiers
in interface JavaElement
getModifiers
in class AbstractField
public int getElementKind()
getElementKind
in interface JavaElement
getElementKind
in class AbstractField
public java.lang.String getName()
getName
in interface JavaHasName
getName
in class AbstractField
public JavaType getResolvedType()
JavaHasType
getResolvedType
in interface JavaHasType
getResolvedType
in class AbstractField
public UnresolvedType getUnresolvedType()
JavaHasType
getUnresolvedType
in interface JavaHasType
getUnresolvedType
in class AbstractElement
public SourceElement getSourceElement()
getSourceElement
in interface JavaElement
getSourceElement
in class AbstractElement
public boolean isSourceElement()
isSourceElement
in interface JavaElement
isSourceElement
in class AbstractElement
public java.util.Collection getDeclaredAnnotations()
JavaHasAnnotations
getDeclaredAnnotations
in interface JavaHasAnnotations
getDeclaredAnnotations
in class AbstractElement
public java.lang.String printCompiledInfo()
JavaElement
printCompiledInfo
in interface JavaElement
printCompiledInfo
in class AbstractField
public boolean isDeprecated()
isDeprecated
in interface JavaElement
isDeprecated
in class AbstractElement
public boolean isHidden()
isHidden
in interface JavaElement
isHidden
in class AbstractElement
public JavaClass getOwningClass()
getOwningClass
in interface JavaMember
getOwningClass
in class AbstractField
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.
public JavaElement getOwner()
JavaElement
getOwner
in interface JavaElement
getOwner
in class AbstractField
public java.lang.Object getConstantValue()
JavaVariable
getConstantValue
in interface JavaVariable
getConstantValue
in class AbstractField
public JavaField getFieldErasure()
JavaField
getFieldErasure
in interface JavaField
getFieldErasure
in class AbstractField
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.0.0) E17493-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |