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