org.jacorb.idl
Class ConstExprEvaluator.Node
java.lang.Object
org.jacorb.idl.ConstExprEvaluator.Node
- Enclosing class:
- ConstExprEvaluator
protected class ConstExprEvaluator.Node
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nString
public String nString
nOperator
public ConstExprEvaluator.Operator nOperator
nLeft
public ConstExprEvaluator.Node nLeft
nRight
public ConstExprEvaluator.Node nRight
nParent
public ConstExprEvaluator.Node nParent
nLevel
public int nLevel
nValue
public Double nValue
ConstExprEvaluator.Node
public ConstExprEvaluator.Node(String s)
throws Exception
- Throws:
Exception
ConstExprEvaluator.Node
public ConstExprEvaluator.Node(ConstExprEvaluator.Node parent,
String s,
int level)
throws Exception
- Throws:
Exception
checkBrackets
protected int checkBrackets(String s)
- checks if there is any missing brackets
- Returns:
- true if s is valid
addZero
protected String addZero(String s)
- returns a string that doesnt start with a + or a -
hasChild
protected boolean hasChild()
hasOperator
protected boolean hasOperator()
hasLeft
protected boolean hasLeft()
getLeft
protected ConstExprEvaluator.Node getLeft()
hasRight
protected boolean hasRight()
getRight
protected ConstExprEvaluator.Node getRight()
getOperator
protected ConstExprEvaluator.Operator getOperator()
getLevel
protected int getLevel()
getValue
protected Double getValue()
setValue
protected void setValue(Double f)
getString
protected String getString()
removeBrackets
public String removeBrackets(String s)
- Removes spaces, tabs and brackets at the begining
removeIllegalCharacters
public String removeIllegalCharacters(String s)
- Removes illegal characters
Copyright © 2012 JacORB. All Rights Reserved.