org.quattor.pan.parser
Class ASTOperation

java.lang.Object
  extended by org.quattor.pan.parser.SimpleNode
      extended by org.quattor.pan.parser.ASTOperation
All Implemented Interfaces:
Node
Direct Known Subclasses:
ASTFunction, ASTVariable

public class ASTOperation
extends SimpleNode

This node implements the methods required for JJTree and also provides the methods to associate an Operation with the node.

Author:
loomis

Nested Class Summary
static class ASTOperation.OperationType
           
 
Field Summary
 
Fields inherited from class org.quattor.pan.parser.SimpleNode
children, id, parent, parser, specialTokens
 
Constructor Summary
ASTOperation(int id)
           
ASTOperation(PanParser p, int id)
           
 
Method Summary
 Operation getOperation()
          Return the associated Operation.
 ASTOperation.OperationType getOperationType()
          Return the associated Operation.
protected  void setOperation(Operation operation)
          Subclasses should call this method to set the Operation for this node.
protected  void setOperationType(ASTOperation.OperationType operationType)
          Subclasses should call this method to set the Operation for this node.
 java.lang.String toString()
          Provide a reasonable String representation of this node.
 
Methods inherited from class org.quattor.pan.parser.SimpleNode
addSpecialToken, dump, getId, getSourceRange, getSpecialTokens, jjtAddChild, jjtClose, jjtGetChild, jjtGetNumChildren, jjtGetParent, jjtOpen, jjtSetParent, setSourceRange, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ASTOperation

public ASTOperation(int id)

ASTOperation

public ASTOperation(PanParser p,
                    int id)
Method Detail

setOperationType

protected void setOperationType(ASTOperation.OperationType operationType)
Subclasses should call this method to set the Operation for this node.


getOperationType

public ASTOperation.OperationType getOperationType()
Return the associated Operation. Subclasses should not need to override this method.


setOperation

protected void setOperation(Operation operation)
Subclasses should call this method to set the Operation for this node.


getOperation

public Operation getOperation()
Return the associated Operation. Subclasses should not need to override this method.


toString

public java.lang.String toString()
Provide a reasonable String representation of this node.

Overrides:
toString in class SimpleNode


Copyright © 2011 Quattor. All Rights Reserved.