public class RslNode extends AbstractRslNode
| Modifier and Type | Field and Description |
|---|---|
protected Map |
_bindings |
protected Map |
_relations |
_operator, _specifications, AND, MULTI, OR| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Bindings bindings) |
boolean |
add(NameOpValue relation) |
AbstractRslNode |
evaluate(Map symbolTable)
Evalutes the rsl tree against the specified symbol table.
|
Map |
getBindings()
Returns the variable definitions.
|
Bindings |
getBindings(String attribute)
Returns the variable definitions associated wit the given
attribute.
|
NameOpValue |
getParam(String attribute)
Returns the relation associated with the given attribute.
|
Map |
getRelations()
Returns the relations.
|
void |
mergeTo(AbstractRslNode dstNode) |
Bindings |
put(Bindings bindings) |
NameOpValue |
put(NameOpValue relation) |
Bindings |
removeBindings(String attribute)
Removes a bindings list for the specified attribute.
|
NameOpValue |
removeParam(String attribute)
Removes a relation for the specified attribute.
|
void |
toRSL(StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of node.
|
add, canonicalize, evaluate, getOperator, getOperatorAsString, getOperatorAsString, getSpecifications, merge, removeSpecification, setOperator, toRSL, toStringpublic boolean add(Bindings bindings)
add in class AbstractRslNodepublic NameOpValue put(NameOpValue relation)
public boolean add(NameOpValue relation)
add in class AbstractRslNodepublic void mergeTo(AbstractRslNode dstNode)
mergeTo in class AbstractRslNodepublic NameOpValue getParam(String attribute)
getParam in class AbstractRslNodeattribute - the attribute of the relation.public Bindings getBindings(String attribute)
getBindings in class AbstractRslNodeattribute - the attribute of the variable deinitions.public NameOpValue removeParam(String attribute)
removeParam in class AbstractRslNodeattribute - the attribute name for the
relation to remove.public Bindings removeBindings(String attribute)
removeBindings in class AbstractRslNodeattribute - the attribute name for the
bindings.public Map getRelations()
public Map getBindings()
public AbstractRslNode evaluate(Map symbolTable) throws RslEvaluationException
evaluate in class AbstractRslNodesymbolTable - the symbol table to evalute variables against.RslEvaluationException - If an error occured during
rsl evaluation.public void toRSL(StringBuffer buf, boolean explicitConcat)
toRSL in class AbstractRslNodebuf - buffer to add the RSL representation to.explicitConcat - if true explicit concatination will
be used in RSL strings.Copyright © 2013. All Rights Reserved.