edu.rice.cs.javalanglevels.tree
Class InnerClassDef

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

public class InnerClassDef
extends ClassDef
implements BodyItemI

Class InnerClassDef, 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 Aug 28 23:01:27 CDT 2011

Constructor Summary
InnerClassDef(SourceInfo in_sourceInfo, ModifiersAndVisibility in_mav, Word in_name, TypeParameter[] in_typeParameters, ReferenceType in_superclass, ReferenceType[] in_interfaces, BracedBody in_body)
          Constructs a InnerClassDef.
 
Method Summary
 boolean equals(java.lang.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.
 void output(java.io.Writer writer)
          Prints this object out as a nicely tabbed tree.
 void outputHelp(TabPrintWriter writer)
           
 java.lang.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.ClassDef
getSuperclass
 
Methods inherited from class edu.rice.cs.javalanglevels.tree.TypeDefBase
getBody, getInterfaces, getMav, getName, getTypeParameters
 
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

InnerClassDef

public InnerClassDef(SourceInfo in_sourceInfo,
                     ModifiersAndVisibility in_mav,
                     Word in_name,
                     TypeParameter[] in_typeParameters,
                     ReferenceType in_superclass,
                     ReferenceType[] in_interfaces,
                     BracedBody in_body)
Constructs a InnerClassDef.

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

visit

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

visit

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

toString

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

Overrides:
toString in class ClassDef

output

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

Overrides:
output in class ClassDef

outputHelp

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

equals

public boolean equals(java.lang.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 ClassDef

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.

Overrides:
generateHashCode in class ClassDef