Package org.lemsml.jlems.core.expression
Class Node
- java.lang.Object
-
- org.lemsml.jlems.core.expression.Node
-
- Direct Known Subclasses:
AbstractSelectionNode
,AbstractUnaryNode
,ConstantNode
,GroupNode
,IntegerConstantNode
,OpenNode
,OpenPredicateNode
,PredicateNode
,VariableNode
public class Node extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deparent()
void
detachNext()
void
detachPrevious()
void
dispose()
boolean
isClose()
boolean
isOpen()
void
linkNext(Node t)
Node
next()
Node
parent()
Node
previous()
void
remove(Node n)
void
replaceChild(Node nold, Node nnew)
void
replaceNext(Node n)
void
replacePrevious(Node n)
void
replaceSymbols(java.util.HashMap<java.lang.String,java.lang.String> map)
void
replaceWith(Node r)
void
setParent(Node p)
java.lang.String
siblingsToString()
java.lang.String
toString()
-
-
-
Field Detail
-
prev
Node prev
-
nxt
Node nxt
-
par
Node par
-
UNKNOWN
public static final int UNKNOWN
- See Also:
- Constant Field Values
-
OPEN
public static final int OPEN
- See Also:
- Constant Field Values
-
CLOSE
public static final int CLOSE
- See Also:
- Constant Field Values
-
CONSTANT
public static final int CONSTANT
- See Also:
- Constant Field Values
-
VARIABLE
public static final int VARIABLE
- See Also:
- Constant Field Values
-
BNARY_OPERATOR
public static final int BNARY_OPERATOR
- See Also:
- Constant Field Values
-
UNARY_OPERATOR
public static final int UNARY_OPERATOR
- See Also:
- Constant Field Values
-
type
public int type
-
-
Constructor Detail
-
Node
public Node()
-
Node
public Node(Node p)
-
-
Method Detail
-
remove
public void remove(Node n) throws ParseError
- Throws:
ParseError
-
replaceChild
public void replaceChild(Node nold, Node nnew) throws ParseError
- Throws:
ParseError
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
siblingsToString
public java.lang.String siblingsToString()
-
setParent
public void setParent(Node p)
-
linkNext
public void linkNext(Node t)
-
previous
public Node previous()
-
next
public Node next()
-
parent
public Node parent()
-
detachNext
public void detachNext()
-
detachPrevious
public void detachPrevious()
-
replacePrevious
public void replacePrevious(Node n)
-
replaceNext
public void replaceNext(Node n)
-
dispose
public void dispose() throws ParseError
- Throws:
ParseError
-
deparent
public void deparent() throws ParseError
- Throws:
ParseError
-
isOpen
public boolean isOpen()
-
isClose
public boolean isClose()
-
replaceWith
public void replaceWith(Node r) throws ParseError
- Throws:
ParseError
-
replaceSymbols
public void replaceSymbols(java.util.HashMap<java.lang.String,java.lang.String> map)
-
-