edu.rice.cs.javalanglevels.tree
Class InitializedVariableDeclarator

java.lang.Object
  extended by edu.rice.cs.javalanglevels.tree.JExpression
      extended by edu.rice.cs.javalanglevels.tree.VariableDeclarator
          extended by edu.rice.cs.javalanglevels.tree.InitializedVariableDeclarator
All Implemented Interfaces:
JExpressionIF

public class InitializedVariableDeclarator
extends VariableDeclarator

Class InitializedVariableDeclarator, 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:28 CDT 2011

Constructor Summary
InitializedVariableDeclarator(SourceInfo in_sourceInfo, Type in_type, Word in_name, VariableInitializerI in_initializer)
          Constructs a InitializedVariableDeclarator.
 
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.
 VariableInitializerI getInitializer()
           
 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.VariableDeclarator
getName, getType
 
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
 

Constructor Detail

InitializedVariableDeclarator

public InitializedVariableDeclarator(SourceInfo in_sourceInfo,
                                     Type in_type,
                                     Word in_name,
                                     VariableInitializerI in_initializer)
Constructs a InitializedVariableDeclarator.

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

getInitializer

public final VariableInitializerI getInitializer()

visit

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

visit

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

toString

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

Overrides:
toString in class java.lang.Object

output

public void output(java.io.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 VariableDeclarator

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 java.lang.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 VariableDeclarator