public class Node extends Object
Modifier and Type | Field and Description |
---|---|
List<Node> |
children |
int |
kind |
Node |
leftNode |
Node |
rightNode |
String |
text |
Constructor and Description |
---|
Node(int kind,
List<Node> children)
creates a logical node
|
Node(int kind,
String text)
creates a node which represents a literal
|
Node(int kind,
String text,
List<Node> children)
Node with children
|
Node(int kind,
String operator,
Node leftValue,
Node rightValue)
Node used for comparison
|
Modifier and Type | Method and Description |
---|---|
<R> R |
accept(Visitor<R> visitor) |
List<Node> |
getChildren() |
int |
getKind() |
Node |
getLeftNode() |
Node |
getRightNode() |
String |
getText() |
String |
toString() |
<R> List<R> |
visitChildren(Visitor<R> visitor) |
public String text
public Node leftNode
public Node rightNode
public int kind
public Node(int kind, String text)
value
- Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.