org.unlaxer.tinyexpression.parser.StringVariableMatchedWithVariableDeclarationParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tinyExpression Show documentation
Show all versions of tinyExpression Show documentation
TinyExpression implemented with Unlaxer
package org.unlaxer.tinyexpression.parser;
import java.util.Optional;
import org.unlaxer.parser.ChildOccurs;
import org.unlaxer.parser.Parser;
import org.unlaxer.parser.Parsers;
@SuppressWarnings("serial")
public class StringVariableMatchedWithVariableDeclarationParser extends VariableDeclarationMatchedTokenParser
implements StringExpression, VariableParser {
public StringVariableMatchedWithVariableDeclarationParser() {
super(ExpressionTypes.string);
}
@Override
public void prepareChildren(Parsers childrenContainer) {
}
@Override
public ChildOccurs getChildOccurs() {
return ChildOccurs.none;
}
@Override
public Parser createParser() {
return this;
}
@Override
public Optional typeAsOptional() {
return Optional.of(ExpressionTypes.string);
}
}