edu.rice.cs.javalanglevels.tree
Class MethodDef

java.lang.Object
  extended by edu.rice.cs.javalanglevels.tree.JExpression
      extended by 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

Constructor Summary
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.
 
Method Summary
protected abstract  int generateHashCode()
           
 ModifiersAndVisibility getMav()
           
 Word getName()
           
 FormalParameter[] getParams()
           
 ReturnTypeI getResult()
           
 ReferenceType[] getThrows()
           
 TypeParameter[] getTypeParams()
           
abstract  void outputHelp(TabPrintWriter writer)
           
abstract  void visit(JExpressionIFVisitor_void visitor)
           
abstract
<RetType> RetType
visit(JExpressionIFVisitor<RetType> visitor)
           
 
Methods inherited from class edu.rice.cs.javalanglevels.tree.JExpression
getSourceInfo, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.rice.cs.javalanglevels.tree.JExpressionIF
getSourceInfo
 

Constructor Detail

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.
Method Detail

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