yalep.models.ExpressionTreeNode   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 19
dl 0
loc 24
rs 10
c 1
b 0
f 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A ExpressionTreeNode(ParseTree,Boolean,NodeType,ExpressionTreeNode) 0 5 1
1
package yalep.models;
2
3
import org.antlr.v4.runtime.tree.ParseTree;
4
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
    }
30
31
}
32