|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SourceMethod
A SourceMethod is the syntactic (aka symbolic) representation of a java method or constructor declaration.
Field Summary | |
---|---|
static SourceMethod[] |
EMPTY_ARRAY
|
static int |
PRINT_DECLARATION
"modifiers lt;type_parameters> return_type name( type name... |
static int |
PRINT_SIGNATURE
"name( type... |
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement |
---|
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT |
Method Summary | |
---|---|
SourceFormalParameterList |
getFormalParameterList()
Gets the formal parameter list object. |
java.util.List |
getSourceExceptions()
Gets the list of source exception types. |
java.util.List |
getSourceParameters()
Gets the list of source parameters. |
SourceTypeReference |
getSourceReturnType()
Gets the source return type. |
java.util.List |
getSourceTypeParameters()
Gets the declared type parameters on this method. |
SourceThrowsClause |
getThrowsClause()
Gets the throws clause object. |
boolean |
isConstructor()
True if this is a constructor. |
boolean |
isVarargs()
Tests if this method is modified by ACC_VARARGS. |
void |
setSourceReturnType(SourceTypeReference type)
Attempts to set the return type of this method. |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceMember |
---|
getDocComment, getEnclosingClass, hasDeprecatedTag, hasHiddenTag, setDocComment |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasModifiers |
---|
addModifiers, getModifiers, getSourceAnnotations, removeModifiers, setModifiers |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement |
---|
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasName |
---|
getName, getNameElement, setName, setNameElement |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceHasBlock |
---|
getBlock, setBlock |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaMethod |
---|
equals, getDefaultValue, getDescriptor, getExceptions, getMethodErasure, getOverriddenMethods, getParameters, getParameterTypes, getReturnType, getSignature, getTypeSignature, hasSubsignatureOf, isNative |
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 SourceMethod[] EMPTY_ARRAY
static final int PRINT_SIGNATURE
static final int PRINT_DECLARATION
Method Detail |
---|
boolean isConstructor()
isConstructor
in interface JavaMethod
boolean isVarargs()
isVarargs
in interface JavaMethod
java.util.List getSourceTypeParameters()
SourceTypeReference getSourceReturnType()
void setSourceReturnType(SourceTypeReference type)
java.lang.UnsupportedOperationException
- if this is a constructor.java.util.List getSourceParameters()
java.util.List getSourceExceptions()
SourceFormalParameterList getFormalParameterList()
SourceThrowsClause getThrowsClause()
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.4.0) E13403-05 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |