|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface JavaMethod
The JavaMethod is the compiled representation of a java method or constructor, including the implicit <clinit> method. If you want the syntactic (aka symbolic) representation of a java class, see JavaMethod.
Field Summary | |
---|---|
static JavaMethod[] |
EMPTY_ARRAY |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Object |
getDefaultValue() |
java.lang.String |
getDescriptor() Important: This is not the same as getReturnType().getDescriptor() which is synonymous with getReturnType().getDescriptor(). |
java.util.Collection<JavaType> |
getExceptions() |
JavaMethod |
getMethodErasure() Gets the erasure for this method. |
java.util.Collection<JavaMethod> |
getOverriddenMethods() According to the JLS, implementing methods are overriding methods where the overriden method is abstract. |
java.util.Collection<JavaVariable> |
getParameters() |
JavaType[] |
getParameterTypes() |
JavaType |
getReturnType() All constructors have a return type of "void". |
java.lang.String |
getSignature() Important: This is not the same as getReturnType().getSignature() which is synonymous with getReturnType().getSignature(). |
java.lang.String |
getTypeSignature() Not a JVMS term. |
boolean |
hasSubsignatureOf(JavaMethod other) True if this method's signature is a subsignature of the other method's signature. |
boolean |
isConstructor() |
boolean |
isNative() |
boolean |
isVarargs() |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaIsGeneric |
---|
getActualTypeArguments, getTypeParameter, getTypeParameters, hasActualTypeArguments, hasTypeParameters |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMember |
---|
getOwningClass, getUniqueIdentifier, isAbstract, isPackagePrivate, isPrivate, isProtected, isPublic, 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 |
---|
static final JavaMethod[] EMPTY_ARRAY
Method Detail |
---|
boolean isConstructor()
boolean isVarargs()
boolean isNative()
JavaMethod getMethodErasure()
The erasure of a method that is not at all generic is trivially itself. The erasure of a method that is completely unparameterized method is also trivially itself.
Note: Erasure is performed strictly on this method and its owning type and is not performed on any of the contained types. For example, consider the method List<String>.get(int) which has a String return type. The parameterization is from List's E type parameter to String. Erasing the parameterization leaves us with List.get(int) which returns has a E return type.
JavaType getReturnType()
java.util.Collection<JavaVariable> getParameters()
JavaType[] getParameterTypes()
java.util.Collection<JavaType> getExceptions()
java.lang.Object getDefaultValue()
JavaVariable.getConstantValue()
java.lang.String getDescriptor()
java.lang.String getTypeSignature()
java.lang.String getSignature()
boolean hasSubsignatureOf(JavaMethod other)
java.util.Collection<JavaMethod> getOverriddenMethods()
boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |