public class UnaryIncrExpr extends UnaryExpr
Modifier and Type | Field and Description |
---|---|
protected boolean |
isPostfix
Boolean indicating whether operator is postfix (true) or prefix (false)
|
Constructor and Description |
---|
UnaryIncrExpr(int lineNum,
Expr expr,
boolean isPostfix)
UnaryIncrExpr 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
protected boolean isPostfix
public UnaryIncrExpr(int lineNum, Expr expr, boolean isPostfix)
lineNum
- source line number corresponding to this AST nodeexpr
- expression for incrementing (expression must be either VarExpr
or ArrayExpr)isPostfix
- boolean indicating whether operator is postfix (true) or
prefix (false)public java.lang.String getOpName()
public java.lang.String getOpType()
public java.lang.String getOperandType()
getOperandType
in class UnaryExpr
public boolean isPostfix()