public class ASTUnaryExpr extends ASTExpression
| Modifier and Type | Class and Description |
|---|---|
static class |
ASTUnaryExpr.UnaryOp
List of permitted unary operations.
|
ASTNode.DataType| Modifier and Type | Field and Description |
|---|---|
ASTExpression |
child |
ASTUnaryExpr.UnaryOp |
operator |
attributes| Constructor and Description |
|---|
ASTUnaryExpr(ASTUnaryExpr.UnaryOp operator,
ASTExpression child) |
| Modifier and Type | Method and Description |
|---|---|
static String |
opToString(ASTUnaryExpr.UnaryOp op) |
String |
toString() |
void |
traverse(ASTVisitor visitor)
Generic traversal method for the visitor pattern.
|
getASTTypeStr, getDepth, getParent, getSourceInfo, getType, setDepth, setParent, setSourceInfo, setType, typeToStringpublic ASTUnaryExpr.UnaryOp operator
public ASTExpression child
public ASTUnaryExpr(ASTUnaryExpr.UnaryOp operator, ASTExpression child)
public static String opToString(ASTUnaryExpr.UnaryOp op)
public void traverse(ASTVisitor visitor)
ASTNodeCopyright © 2019. All rights reserved.