edu.rice.cs.javalanglevels.tree
Class ConstructorDef

java.lang.Object
  extended by edu.rice.cs.javalanglevels.tree.JExpression
      extended by edu.rice.cs.javalanglevels.tree.ConstructorDef
All Implemented Interfaces:
BodyItemI, JExpressionIF

public class ConstructorDef
extends JExpression
implements BodyItemI

Class ConstructorDef, 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 Jun 23 23:00:36 CDT 2013

Constructor Summary
ConstructorDef(SourceInfo in_sourceInfo, Word in_name, ModifiersAndVisibility in_mav, FormalParameter[] in_parameters, ReferenceType[] in_throws, BracedBody in_statements)
          Constructs a ConstructorDef.
 
Method Summary
 boolean equals(Object obj)
          Implementation of equals that is based on the values of the fields of the object.
protected  int generateHashCode()
          Implementation of hashCode that is consistent with equals.
 ModifiersAndVisibility getMav()
           
 Word getName()
           
 FormalParameter[] getParameters()
           
 BracedBody getStatements()
           
 ReferenceType[] getThrows()
           
 void output(Writer writer)
          Prints this object out as a nicely tabbed tree.
 void outputHelp(TabPrintWriter writer)
           
 String toString()
          Implementation of toString that uses output(java.io.Writer) to generated nicely tabbed tree.
 void visit(JExpressionIFVisitor_void visitor)
           
<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, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.rice.cs.javalanglevels.tree.JExpressionIF
getSourceInfo
 

Constructor Detail

ConstructorDef

public ConstructorDef(SourceInfo in_sourceInfo,
                      Word in_name,
                      ModifiersAndVisibility in_mav,
                      FormalParameter[] in_parameters,
                      ReferenceType[] in_throws,
                      BracedBody in_statements)
Constructs a ConstructorDef.

Throws:
IllegalArgumentException - If any parameter to the constructor is null.
Method Detail

getName

public final Word getName()

getMav

public final ModifiersAndVisibility getMav()

getParameters

public final FormalParameter[] getParameters()

getThrows

public final ReferenceType[] getThrows()

getStatements

public final BracedBody getStatements()

visit

public <RetType> RetType visit(JExpressionIFVisitor<RetType> visitor)
Specified by:
visit in interface JExpressionIF
Specified by:
visit in class JExpression

visit

public void visit(JExpressionIFVisitor_void visitor)
Specified by:
visit in interface JExpressionIF
Specified by:
visit in class JExpression

toString

public String toString()
Implementation of toString that uses output(java.io.Writer) to generated nicely tabbed tree.

Overrides:
toString in class Object

output

public void output(Writer writer)
Prints this object out as a nicely tabbed tree.


outputHelp

public void outputHelp(TabPrintWriter writer)
Specified by:
outputHelp in interface JExpressionIF
Specified by:
outputHelp in class JExpression

equals

public boolean equals(Object obj)
Implementation of equals that is based on the values of the fields of the object. Thus, two objects created with identical parameters will be equal.

Overrides:
equals in class Object

generateHashCode

protected int generateHashCode()
Implementation of hashCode that is consistent with equals. The value of the hashCode is formed by XORing the hashcode of the class object with the hashcodes of all the fields of the object.

Specified by:
generateHashCode in class JExpression