org.jacorb.idl
Class ConstExprEvaluator.Node
java.lang.Object
org.jacorb.idl.ConstExprEvaluator.Node
- ConstExprEvaluator
protected class ConstExprEvaluator.Node
extends java.lang.Object
nString
public String nString
nValue
public Double nValue
Node
public Node(String s)
throws Exception
addZero
protected String addZero(String s)
returns a string that doesnt start with a + or a -
checkBrackets
protected int checkBrackets(String s)
checks if there is any missing brackets
- true if s is valid
getLevel
protected int getLevel()
getString
protected String getString()
getValue
protected Double getValue()
hasChild
protected boolean hasChild()
hasLeft
protected boolean hasLeft()
hasOperator
protected boolean hasOperator()
hasRight
protected boolean hasRight()
removeBrackets
public String removeBrackets(String s)
Removes spaces, tabs and brackets at the begining
removeIllegalCharacters
public String removeIllegalCharacters(String s)
Removes illegal characters
setValue
protected void setValue(Double f)