|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.globus.rsl.AbstractRslNode
org.globus.rsl.RslNode
public class RslNode
This class represents a RSL parse tree. It is composed of variable definitions (bindings), relations, and sub-specifications (sub nodes).
Field Summary | |
---|---|
protected java.util.Map |
_bindings
|
protected java.util.Map |
_relations
|
Fields inherited from class org.globus.rsl.AbstractRslNode |
---|
_operator, _specifications, AND, MULTI, OR |
Constructor Summary | |
---|---|
RslNode()
|
|
RslNode(int operator)
|
Method Summary | |
---|---|
boolean |
add(Bindings bindings)
|
boolean |
add(NameOpValue relation)
|
AbstractRslNode |
evaluate(java.util.Map symbolTable)
Evalutes the rsl tree against the specified symbol table. |
java.util.Map |
getBindings()
Returns the variable definitions. |
Bindings |
getBindings(java.lang.String attribute)
Returns the variable definitions associated wit the given attribute. |
NameOpValue |
getParam(java.lang.String attribute)
Returns the relation associated with the given attribute. |
java.util.Map |
getRelations()
Returns the relations. |
void |
mergeTo(AbstractRslNode dstNode)
|
Bindings |
put(Bindings bindings)
|
NameOpValue |
put(NameOpValue relation)
|
Bindings |
removeBindings(java.lang.String attribute)
Removes a bindings list for the specified attribute. |
NameOpValue |
removeParam(java.lang.String attribute)
Removes a relation for the specified attribute. |
void |
toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of node. |
Methods inherited from class org.globus.rsl.AbstractRslNode |
---|
add, canonicalize, evaluate, getOperator, getOperatorAsString, getOperatorAsString, getSpecifications, merge, removeSpecification, setOperator, toRSL, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected java.util.Map _relations
protected java.util.Map _bindings
Constructor Detail |
---|
public RslNode()
public RslNode(int operator)
Method Detail |
---|
public Bindings put(Bindings bindings)
public boolean add(Bindings bindings)
add
in class AbstractRslNode
public NameOpValue put(NameOpValue relation)
public boolean add(NameOpValue relation)
add
in class AbstractRslNode
public void mergeTo(AbstractRslNode dstNode)
mergeTo
in class AbstractRslNode
public NameOpValue getParam(java.lang.String attribute)
getParam
in class AbstractRslNode
attribute
- the attribute of the relation.
public Bindings getBindings(java.lang.String attribute)
getBindings
in class AbstractRslNode
attribute
- the attribute of the variable deinitions.
public NameOpValue removeParam(java.lang.String attribute)
removeParam
in class AbstractRslNode
attribute
- the attribute name for the
relation to remove.
public Bindings removeBindings(java.lang.String attribute)
removeBindings
in class AbstractRslNode
attribute
- the attribute name for the
bindings.
public java.util.Map getRelations()
public java.util.Map getBindings()
public AbstractRslNode evaluate(java.util.Map symbolTable) throws RslEvaluationException
evaluate
in class AbstractRslNode
symbolTable
- the symbol table to evalute variables against.
RslEvaluationException
- If an error occured during
rsl evaluation.public void toRSL(java.lang.StringBuffer buf, boolean explicitConcat)
toRSL
in class AbstractRslNode
buf
- buffer to add the RSL representation to.explicitConcat
- if true explicit concatination will
be used in RSL strings.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |