|
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.AbstractVariable
oracle.javatools.parser.java.v2.common.QuickLocalVariable
public abstract class QuickLocalVariable
A light-weight implementation of JavaLocalVariable, particularly useful for constructing formal parameter objects for use with QuickMethod.
TODO: The equals(O) method has not been overriden.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
---|
JavaPreferences.MemberOrder |
Field Summary | |
---|---|
protected java.lang.String |
name The name of the variable. |
protected JavaElement |
owner Cannot require that it be final or set through the constructor because formal parameter instances are often constructed before the owning method instance. |
protected java.lang.Object |
value The constant value, if any. |
Fields inherited from interface oracle.javatools.parser.java.v2.model.JavaVariable |
---|
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 QuickLocalVariable |
createLocalVariable(JavaHasType hasType, java.lang.String name) Creates a local variable for a type that is not known at construction time. |
static QuickLocalVariable |
createLocalVariable(JavaType knownType, java.lang.String name) Creates a local variable from a type that is known at construction time. |
int |
getElementKind() |
JavaFile |
getFile() |
int |
getModifiers() |
java.lang.String |
getName() |
JavaElement |
getOwner() TODO: Document me! |
abstract JavaType |
getResolvedType() A JavaField instance will return the field's type. |
void |
setOwner(JavaElement o) |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractVariable |
---|
getConstantValue, printCompiledInfo |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractElement |
---|
clearCompiledInfo, getActualTypeArguments, getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, getSourceElement, getSourceSymbol, getTypeParameters, getUnresolvedType, hasActualTypeArguments, hasTypeParameters, isAbstract, isDeprecated, isFinal, isHidden, isPackagePrivate, isPrivate, isProtected, isPublic, isSourceElement, isStatic, isSynthetic, isTransient, isVarargs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaVariable |
---|
getConstantValue, isVarargs |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasType |
---|
getUnresolvedType |
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 |
---|
getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
Field Detail |
---|
protected final java.lang.String name
protected JavaElement owner
protected java.lang.Object value
Method Detail |
---|
public static QuickLocalVariable createLocalVariable(JavaType knownType, java.lang.String name)
name
- If null, the empty string is used.public static QuickLocalVariable createLocalVariable(JavaHasType hasType, java.lang.String name)
name
- If null, the empty string is used.public abstract JavaType getResolvedType()
JavaHasType
A JavaMethod instance will return the method's return type.
A JavaVariable instance will return the variable's type.
A JavaType instance will return itself.
getResolvedType
in interface JavaHasType
getResolvedType
in class AbstractVariable
public JavaFile getFile()
getFile
in interface JavaElement
If a SourceFile is returned, then this element is declared in or otherwise comes in a SourceFile.
A non-null JavaFile may be returned that is not a SourceFile. For example, a JavaClass that came from a .class file definition will return such a JavaFile instance.
If null, then this element was created on-the-fly.
public int getElementKind()
getElementKind
in interface JavaElement
getElementKind
in class AbstractVariable
public int getModifiers()
getModifiers
in interface JavaElement
getModifiers
in class AbstractVariable
public java.lang.String getName()
getName
in interface JavaHasName
getName
in class AbstractVariable
public JavaElement getOwner()
JavaElement
getOwner
in interface JavaElement
getOwner
in class AbstractVariable
public void setOwner(JavaElement o)
|
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 |