org.jacorb.idl
Class ConstExprEvaluator.Node

java.lang.Object
  extended by org.jacorb.idl.ConstExprEvaluator.Node
Enclosing class:
ConstExprEvaluator

protected class ConstExprEvaluator.Node
extends Object


Field Summary
 ConstExprEvaluator.Node nLeft
           
 int nLevel
           
 ConstExprEvaluator.Operator nOperator
           
 ConstExprEvaluator.Node nParent
           
 ConstExprEvaluator.Node nRight
           
 String nString
           
 Double nValue
           
 
Constructor Summary
ConstExprEvaluator.Node(ConstExprEvaluator.Node parent, String s, int level)
           
ConstExprEvaluator.Node(String s)
           
 
Method Summary
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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
Method Detail

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.