|
package serene.simple;
|
|
|
|
public class StringNode extends Node {
|
|
private final String value;
|
|
|
|
public StringNode(String v) {
|
|
this.value = v;
|
|
}
|
|
|
|
@Override
|
|
public Object eval(BaseScope scope) {
|
|
return this.value;
|
|
}
|
|
|
|
@Override
|
|
public String toString() {
|
|
return this.value;
|
|
}
|
|
}
|