edu.rice.cs.javalanglevels.tree
Class MethodDef
java.lang.Object
edu.rice.cs.javalanglevels.tree.JExpression
edu.rice.cs.javalanglevels.tree.MethodDef
- All Implemented Interfaces:
- BodyItemI, JExpressionIF
- Direct Known Subclasses:
- AbstractMethodDef, ConcreteMethodDef
public abstract class MethodDef
- extends JExpression
- implements BodyItemI
Class MethodDef, a component of the JExpressionIF composite hierarchy.
Note: null is not allowed as a value for any field.
- Version:
- Generated automatically by ASTGen at Sun May 27 23:01:27 CDT 2012
MethodDef
public MethodDef(SourceInfo in_sourceInfo,
ModifiersAndVisibility in_mav,
TypeParameter[] in_typeParams,
ReturnTypeI in_result,
Word in_name,
FormalParameter[] in_params,
ReferenceType[] in_throws)
- Constructs a MethodDef.
- Throws:
IllegalArgumentException - If any parameter to the constructor is null.
getMav
public ModifiersAndVisibility getMav()
getTypeParams
public TypeParameter[] getTypeParams()
getResult
public ReturnTypeI getResult()
getName
public Word getName()
getParams
public FormalParameter[] getParams()
getThrows
public ReferenceType[] getThrows()
visit
public abstract <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor)
- Specified by:
visit in interface JExpressionIF- Specified by:
visit in class JExpression
visit
public abstract void visit(JExpressionIFVisitor_void visitor)
- Specified by:
visit in interface JExpressionIF- Specified by:
visit in class JExpression
outputHelp
public abstract void outputHelp(TabPrintWriter writer)
- Specified by:
outputHelp in interface JExpressionIF- Specified by:
outputHelp in class JExpression
generateHashCode
protected abstract int generateHashCode()
- Specified by:
generateHashCode in class JExpression