|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
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.AbstractMethod
oracle.javatools.parser.java.v2.common.WrapperMethod
oracle.javatools.parser.java.v2.common.QuickComponent
public class QuickComponent
A QuickComponent is a special type of JavaVariable that refers to an annotation member (method!). It has to be a JavaVariable because it's assignable and it has to be a JavaMember because it needs to be able to goto its own class. The only thing that matches that description is a JavaField.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
---|
JavaPreferences.MemberOrder |
Field Summary |
---|
Fields inherited from class oracle.javatools.parser.java.v2.common.WrapperMethod |
---|
thing |
Fields inherited from interface oracle.javatools.parser.java.v2.model.JavaVariable |
---|
EMPTY_ARRAY |
Fields inherited from interface oracle.javatools.parser.java.v2.model.JavaMethod |
---|
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 |
Method Summary | |
---|---|
static QuickComponent |
createComponent(JavaMethod method) Creates an annotation component without an assigned value. |
static QuickComponent |
createComponent(JavaMethod method, java.lang.Object value) Creates an annotation component with the given assigned value. |
java.lang.Object |
getConstantValue() TODO: What about static final fields of enum type? |
int |
getElementKind() |
JavaMethod |
getMethod() |
JavaElement |
getOwner() TODO: Document me! |
void |
setOwner(JavaElement owner) |
void |
setValue(java.lang.Object value) |
Methods inherited from class oracle.javatools.parser.java.v2.common.WrapperMethod |
---|
getActualTypeArguments, getDeclaredAnnotations, getDefaultValue, getExceptions, getFile, getMethodErasure, getModifiers, getName, getOwningClass, getParameters, getResolvedType, getReturnType, getSourceElement, getTypeParameters, getUnresolvedType, isConstructor, isDeprecated, isHidden, isSourceElement, isVarargs |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractMethod |
---|
clearCompiledInfo, equals, getDescriptor, getOverriddenMethods, getParameterTypes, getSignature, getTypeParameter, getTypeSignature, getUniqueIdentifier, hashCode, hasSubsignatureOf, isNative, printCompiledInfo |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractElement |
---|
getAnnotation, getAnnotations, getDeclaredAnnotation, getSourceSymbol, 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.JavaVariable |
---|
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 |
---|
getFile, getModifiers, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaIsGeneric |
---|
hasActualTypeArguments, hasTypeParameters |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMember |
---|
isAbstract, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic |
Method Detail |
---|
public static QuickComponent createComponent(JavaMethod method)
public static QuickComponent createComponent(JavaMethod method, java.lang.Object value)
public JavaMethod getMethod()
public int getElementKind()
getElementKind
in interface JavaElement
getElementKind
in class WrapperMethod
public void setValue(java.lang.Object value)
public java.lang.Object getConstantValue()
JavaVariable
getConstantValue
in interface JavaVariable
Note: Constant values cannot be null. Therefore, null indicates no constant value.
If the constant value is of primitive type, it will be wrapped in an object. For example, if the constant value is an int of value 1, then an Integer i such that i.intValue() == 1 will be returned.
If the constant value is of String type, a String of same value will be returned.
If the constant value is an array, then an array of Object[] will be returned. If the constant value is an int array with single element one, then an Object[ 1 ] with single entry Integer i such that i.intValue() == 1 will be returned.
If the constant value is an enum constant, the enum constant itself is NOT returned because of practical considerations regarding classloading. Instead, a JavaField corresponding to that enum constant is returned. Notice that if "this" is an enum constant, then "this" is returned because it itself represents the enum constant.
If the constant value is a class literal, then a JavaType corresponding to the class is returned. This cannot be a JavaClass because some class literals are array types.
public JavaElement getOwner()
JavaElement
getOwner
in interface JavaElement
getOwner
in class WrapperMethod
public void setOwner(JavaElement owner)
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.7.2) E13403-10 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |