protected class ConstExprEvaluator.Node extends Object
Modifier and Type | Field and Description |
---|---|
ConstExprEvaluator.Node |
nLeft |
int |
nLevel |
ConstExprEvaluator.Operator |
nOperator |
ConstExprEvaluator.Node |
nParent |
ConstExprEvaluator.Node |
nRight |
String |
nString |
Double |
nValue |
Constructor and Description |
---|
Node(ConstExprEvaluator.Node parent,
String s,
int level) |
Node(String s) |
Modifier and Type | Method and Description |
---|---|
protected String |
addZero(String s)
returns a string that doesnt start with a + or a -
|
protected int |
checkBrackets(String s)
checks if there is any missing brackets
|
protected ConstExprEvaluator.Node |
getLeft() |
protected int |
getLevel() |
protected ConstExprEvaluator.Operator |
getOperator() |
protected ConstExprEvaluator.Node |
getRight() |
protected String |
getString() |
protected Double |
getValue() |
protected boolean |
hasChild() |
protected boolean |
hasLeft() |
protected boolean |
hasOperator() |
protected boolean |
hasRight() |
String |
removeBrackets(String s)
Removes spaces, tabs and brackets at the begining
|
String |
removeIllegalCharacters(String s)
Removes illegal characters
|
protected void |
setValue(Double f) |
public String nString
public ConstExprEvaluator.Operator nOperator
public ConstExprEvaluator.Node nLeft
public ConstExprEvaluator.Node nRight
public ConstExprEvaluator.Node nParent
public int nLevel
public Double nValue
public Node(ConstExprEvaluator.Node parent, String s, int level) throws Exception
Exception
protected int checkBrackets(String s)
protected boolean hasChild()
protected boolean hasOperator()
protected boolean hasLeft()
protected ConstExprEvaluator.Node getLeft()
protected boolean hasRight()
protected ConstExprEvaluator.Node getRight()
protected ConstExprEvaluator.Operator getOperator()
protected int getLevel()
protected Double getValue()
protected void setValue(Double f)
protected String getString()
public String removeBrackets(String s)
Copyright © 2016 JacORB. All rights reserved.