gov.llnl.babel.ast
Class UnaryExpr
java.lang.Object
gov.llnl.babel.ast.ASTNode
gov.llnl.babel.ast.UnaryExpr
public class UnaryExpr
- extends ASTNode
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 |
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
UnaryExpr
public UnaryExpr(ParseTreeNode src,
ASTNode parent)
UnaryExpr
public UnaryExpr(ParseTreeNode src,
ASTNode parent,
int operator,
ASTNode operand)
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 classdata
- Optional extra data
- Returns:
- Optional extra data