public class Binding
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_name |
protected Value |
_value |
Constructor and Description |
---|
Binding(java.lang.String name,
java.lang.String value) |
Binding(java.lang.String name,
Value value) |
Modifier and Type | Method and Description |
---|---|
Binding |
evaluate(java.util.Map symbolTable)
Evaluates the variable definition with the specified
symbol table.
|
java.lang.String |
getName()
Returns the name of the variable.
|
Value |
getValue()
Returns the variable value.
|
java.lang.String |
toRSL(boolean explicitConcat)
Returns a RSL representation of this variable definition.
|
void |
toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this variable definition.
|
java.lang.String |
toString() |
protected java.lang.String _name
protected Value _value
public Binding(java.lang.String name, Value value)
public Binding(java.lang.String name, java.lang.String value)
public java.lang.String getName()
public Value getValue()
public Binding evaluate(java.util.Map symbolTable) throws RslEvaluationException
symbolTable
- the symbol table to evaluate
the value against.RslEvaluationException
- If an error occured during
rsl evaluation.public java.lang.String toRSL(boolean explicitConcat)
explicitConcat
- if true explicit concatination will
be used in RSL strings.public void toRSL(java.lang.StringBuffer buf, boolean explicitConcat)
buf
- buffer to add the RSL representation to.explicitConcat
- if true explicit concatination will
be used in RSL strings.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2012. All Rights Reserved.