public class VarRef extends Value
Modifier and Type | Field and Description |
---|---|
protected Value |
defValue |
concatValue, value
Constructor and Description |
---|
VarRef(java.lang.String varReference) |
VarRef(java.lang.String varReference,
Value defValue) |
VarRef(java.lang.String varReference,
Value defValue,
Value concatVal) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
evaluate(java.util.Map symbolTable)
Evaluates the variable reference with the specified
symbol table.
|
java.lang.String |
getCompleteValue()
Returns a complete string representation of this
value.
|
int |
hashCode() |
void |
setDefaultValue(Value value)
Sets the default value of this reference.
|
void |
toRSL(java.lang.StringBuffer buf,
boolean explicitConcat)
Produces a RSL representation of this variable reference.
|
java.lang.String |
toString() |
protected Value defValue
public VarRef(java.lang.String varReference)
public VarRef(java.lang.String varReference, Value defValue)
public void setDefaultValue(Value value)
value
- the default value.public java.lang.String evaluate(java.util.Map symbolTable) throws RslEvaluationException
evaluate
in class Value
symbolTable
- the symbol table to evaluate
the variabled reference against.RslEvaluationException
- If an error occured during
rsl evaluation.public void toRSL(java.lang.StringBuffer buf, boolean explicitConcat)
public java.lang.String getCompleteValue()
getCompleteValue
in class Value
Copyright © 2012. All Rights Reserved.