edu.rice.cs.javalanglevels.tree
Class VariableDeclarator

java.lang.Object
  extended by edu.rice.cs.javalanglevels.tree.JExpression
      extended by edu.rice.cs.javalanglevels.tree.VariableDeclarator
All Implemented Interfaces:
JExpressionIF
Direct Known Subclasses:
InitializedVariableDeclarator, UninitializedVariableDeclarator

public abstract class VariableDeclarator
extends JExpression

Class VariableDeclarator, 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 Mar 04 23:01:27 CST 2012

Constructor Summary
VariableDeclarator(SourceInfo in_sourceInfo, Type in_type, Word in_name)
          Constructs a VariableDeclarator.
 
Method Summary
protected abstract  int generateHashCode()
           
 Word getName()
           
 Type getType()
           
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
 

Constructor Detail

VariableDeclarator

public VariableDeclarator(SourceInfo in_sourceInfo,
                          Type in_type,
                          Word in_name)
Constructs a VariableDeclarator.

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

getType

public Type getType()

getName

public Word getName()

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