Total Complexity | 1 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | package yalep.models; |
||
5 | public class ExpressionTreeNode { |
||
6 | |||
7 | NodeType type; |
||
8 | String nodeText; |
||
9 | Boolean isNegated; |
||
10 | ExpressionTreeNode next; |
||
11 | Integer boxStartX; |
||
12 | Integer boxStartY; |
||
13 | Boolean occupied = false; |
||
14 | |||
15 | // конструктор поменять |
||
16 | public ExpressionTreeNode(ParseTree node, Boolean isNegated, NodeType nodeType, ExpressionTreeNode next) { |
||
17 | this.type = nodeType; |
||
18 | this.next = next; |
||
19 | this.nodeText = node.getText(); |
||
20 | this.isNegated = isNegated; |
||
21 | } |
||
22 | |||
23 | public enum NodeType { |
||
24 | VARIABLE, |
||
25 | OR, |
||
26 | AND, |
||
27 | PARENS, |
||
28 | XOR |
||
29 | } |
||
32 |