gov.llnl.babel.ast
Class UnaryExpr

java.lang.Object
  extended by gov.llnl.babel.ast.ASTNode
      extended by gov.llnl.babel.ast.UnaryExpr

public class UnaryExpr
extends ASTNode


Field Summary
static int COMPLEMENT
           
static int IS
           
static int MINUS
           
static int NOT
           
static int PLUS
           
 
Fields inherited from class gov.llnl.babel.ast.ASTNode
ILLEGAL_NODEID
 
Constructor Summary
UnaryExpr(ParseTreeNode src, ASTNode parent)
           
UnaryExpr(ParseTreeNode src, ASTNode parent, int operator, ASTNode operand)
           
 
Method Summary
 java.lang.Object accept(Visitor visitor, java.lang.Object data)
          implements "Visitor Pattern"
 ASTNode getOperand()
           
 int getOperator()
           
static java.lang.String getOpSIDL(int op)
           
 void setOperand(ASTNode operand)
           
 void setOperator(int op)
           
 
Methods inherited from class gov.llnl.babel.ast.ASTNode
getFilename, getFirstToken, getLastToken, getNodeId, getParent, getParseTreeNode, getSymbolTableEntry, setFirstToken, setLastToken, setNodeId, setParent, setParseTreeNode, setSymbolTableEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PLUS

public static final int PLUS
See Also:
Constant Field Values

MINUS

public static final int MINUS
See Also:
Constant Field Values

COMPLEMENT

public static final int COMPLEMENT
See Also:
Constant Field Values

IS

public static final int IS
See Also:
Constant Field Values

NOT

public static final int NOT
See Also:
Constant Field Values
Constructor Detail

UnaryExpr

public UnaryExpr(ParseTreeNode src,
                 ASTNode parent)

UnaryExpr

public UnaryExpr(ParseTreeNode src,
                 ASTNode parent,
                 int operator,
                 ASTNode operand)
Method Detail

setOperand

public void setOperand(ASTNode operand)

getOperand

public ASTNode getOperand()

setOperator

public void setOperator(int op)

getOperator

public int getOperator()

getOpSIDL

public static java.lang.String getOpSIDL(int op)

accept

public java.lang.Object accept(Visitor visitor,
                               java.lang.Object data)
Description copied from class: ASTNode
implements "Visitor Pattern"

Specified by:
accept in class ASTNode
Parameters:
visitor - The visitor class
data - Optional extra data
Returns:
Optional extra data