|
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.QuickMethod
public final class QuickMethod
A lightweight implementation of JavaMethod. For parameters, use QuickLocalVariable.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface oracle.javatools.parser.java.v2.JavaPreferences |
---|
JavaPreferences.MemberOrder |
Field Summary |
---|
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 QuickMethod |
createMethod(JavaClass owning, char access, JavaType returnType, java.lang.String name, java.util.Collection parameters, java.util.Collection exceptions) We could let a client directly create a QuickMethod, but all the other Quick* classes have package-private (or private) constructors, so let's follow the convention. |
java.util.Collection |
getExceptions() |
int |
getModifiers() |
java.lang.String |
getName() |
JavaClass |
getOwningClass() |
java.util.Collection |
getParameters() |
JavaType |
getResolvedType() A JavaField instance will return the field's type. |
UnresolvedType |
getUnresolvedType() Information about a type that has not been resolved. |
boolean |
isConstructor() |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractMethod |
---|
clearCompiledInfo, equals, getDefaultValue, getDescriptor, getElementKind, getFile, getMethodErasure, getOverriddenMethods, getOwner, getParameterTypes, getReturnType, getSignature, getTypeParameter, getTypeSignature, getUniqueIdentifier, hashCode, hasSubsignatureOf, isNative, printCompiledInfo |
Methods inherited from class oracle.javatools.parser.java.v2.common.AbstractElement |
---|
getActualTypeArguments, getAnnotation, getAnnotations, getDeclaredAnnotation, getDeclaredAnnotations, getSourceElement, getSourceSymbol, getTypeParameters, hasActualTypeArguments, hasTypeParameters, isAbstract, isDeprecated, isFinal, isHidden, isPackagePrivate, isPrivate, isProtected, isPublic, isSourceElement, isStatic, isSynthetic, isTransient, isVarargs |
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.JavaMethod |
---|
isVarargs |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaIsGeneric |
---|
getActualTypeArguments, getTypeParameters, hasActualTypeArguments, hasTypeParameters |
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, getDeclaredAnnotations |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement |
---|
getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic |
Method Detail |
---|
public static QuickMethod createMethod(JavaClass owning, char access, JavaType returnType, java.lang.String name, java.util.Collection parameters, java.util.Collection exceptions)
returnType
- Null means void.parameters
- Null means none. For each element that is an instance of QuickLocalVariable, this will implicitly set the parameter's owner to be this.exceptions
- Null means none.public int getModifiers()
getModifiers
in interface JavaElement
getModifiers
in class AbstractMethod
public 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 AbstractMethod
public UnresolvedType getUnresolvedType()
JavaHasType
getUnresolvedType
in interface JavaHasType
getUnresolvedType
in class AbstractElement
public java.lang.String getName()
getName
in interface JavaHasName
getName
in class AbstractMethod
public java.util.Collection getParameters()
getParameters
in interface JavaMethod
getParameters
in class AbstractMethod
public java.util.Collection getExceptions()
getExceptions
in interface JavaMethod
getExceptions
in class AbstractMethod
public JavaClass getOwningClass()
getOwningClass
in interface JavaMember
getOwningClass
in class AbstractMethod
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 boolean isConstructor()
isConstructor
in interface JavaMethod
isConstructor
in class AbstractMethod
|
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 |