Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.model.java.source.tree
Interface MethodT  view MethodT download MethodT.java

All Superinterfaces:
HasModifiersT, HasNameT, MemberT, Tree

public interface MethodT
extends MemberT, HasNameT

A method or constructor declaration.


Field Summary
static MethodT[] EMPTY_ARRAY
           
 
Method Summary
 java.util.List getExceptions()
          Gets the ordered list of exception types.
 FormalParameterListT getFormalParameterList()
          Gets the formal parameter list object.
 java.util.List getParameters()
          Gets the ordered list of parameters.
 TypeReferenceT getReturnType()
          Gets the source return type.
 ThrowsT getThrowsClause()
          Gets the throws clause object.
 java.util.List getTypeParameters()
          Gets the ordered list of type parameters declared on this class.
 boolean isConstructor()
          True if this is a constructor.
 boolean isVarargs()
          Tests if this method is modified by ACC_VARARGS.
 void setReturnType(TypeReferenceT type)
          Attempts to set the return type of this method.
 
Methods inherited from interface javax.ide.model.java.source.tree.MemberT
getBlock, getDeclaringClass, getDocComment, setBlock, setDocComment
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 
Methods inherited from interface javax.ide.model.java.source.tree.HasModifiersT
addModifiers, getAnnotations, getModifiers, isAbstract, isFinal, isPrivate, isProtected, isPublic, isStatic, isStrictfp, removeModifiers, setModifiers
 
Methods inherited from interface javax.ide.model.java.source.tree.HasNameT
getName, getNameElement, setName, setNameElement
 

Field Detail

EMPTY_ARRAY

public static final MethodT[] EMPTY_ARRAY
Method Detail

isConstructor

public boolean isConstructor()
True if this is a constructor. Equivalent to asking getTreeKind() == TREE_CONSTRUCTOR_D.


isVarargs

public boolean isVarargs()
Tests if this method is modified by ACC_VARARGS.


getTypeParameters

public java.util.List getTypeParameters()
Gets the ordered list of type parameters declared on this class. Remember, type parameters are not inherited by subclasses (and subinterfaces).

For classes, syntax is "javadoc mods class name {}".


getReturnType

public TypeReferenceT getReturnType()
Gets the source return type.


setReturnType

public void setReturnType(TypeReferenceT type)
Attempts to set the return type of this method.


getParameters

public java.util.List getParameters()
Gets the ordered list of parameters.


getExceptions

public java.util.List getExceptions()
Gets the ordered list of exception types.


getFormalParameterList

public FormalParameterListT getFormalParameterList()
Gets the formal parameter list object.


getThrowsClause

public ThrowsT getThrowsClause()
Gets the throws clause object.