org.snapscript.tree.literal.NullLiteral Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap Show documentation
Show all versions of snap Show documentation
Dynamic scripting for the JVM
package org.snapscript.tree.literal;
import static org.snapscript.core.constraint.Constraint.NONE;
import org.snapscript.core.scope.Scope;
import org.snapscript.parse.StringToken;
public class NullLiteral extends Literal {
private final StringToken token;
public NullLiteral() {
this(null);
}
public NullLiteral(StringToken token) {
this.token = token;
}
@Override
protected LiteralValue create(Scope scope) throws Exception {
return new LiteralValue(null, NONE);
}
}