public class UnaryNegExpr extends UnaryExpr
Constructor and Description |
---|
UnaryNegExpr(int lineNum,
Expr expr)
UnaryNegExpr constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
accept(visitor.Visitor v,
java.lang.Object o)
Visitor method
|
java.lang.String |
getOperandType()
Get the operand type
|
java.lang.String |
getOpName()
Get the operation name
|
java.lang.String |
getOpType()
Get the operation type
|
boolean |
isPostfix()
Is this a postfix operator (as opposed to prefix)?
|
getExprType, setExprType
getLineNum
public UnaryNegExpr(int lineNum, Expr expr)
lineNum
- source line number corresponding to this AST nodeexpr
- expression for complementingpublic java.lang.String getOpName()
public java.lang.String getOpType()
public java.lang.String getOperandType()
getOperandType
in class UnaryExpr
public boolean isPostfix()