|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectast.ASTNode
ast.Expr
ast.UnaryExpr
ast.UnaryNotExpr
public class UnaryNotExpr
The UnaryNotExpr class represents logical not (complement) expressions. It extends unary expressions so it contains an expression. Since this class is similar to other subclasses most of the functionality can be implemented in the visitor method for the parent class.
ASTNode,
Expr| Field Summary |
|---|
| Fields inherited from class ast.UnaryExpr |
|---|
expr |
| Fields inherited from class ast.ASTNode |
|---|
charNum, lineNum, lineStr |
| Constructor Summary | |
|---|---|
UnaryNotExpr(int lineNum,
Expr expr)
UnaryNotExpr constructor |
|
| Method Summary | |
|---|---|
java.lang.Object |
accept(Visitor v)
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)? |
| Methods inherited from class ast.UnaryExpr |
|---|
getExpr |
| Methods inherited from class ast.Expr |
|---|
getExprType, setExprType |
| Methods inherited from class ast.ASTNode |
|---|
getLineNum |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UnaryNotExpr(int lineNum,
Expr expr)
lineNum - source line number corresponding to this AST nodeexpr - expression for complementing| Method Detail |
|---|
public java.lang.String getOpName()
getOpName in class UnaryExprpublic java.lang.String getOpType()
getOpType in class UnaryExprpublic java.lang.String getOperandType()
getOperandType in class UnaryExprpublic boolean isPostfix()
isPostfix in class UnaryExprpublic java.lang.Object accept(Visitor v)
accept in class UnaryExprv - visitor object
Visitor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||