org.unlaxer.tinyexpression.parser.StringMethodExpressionParser 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
The newest version!
package org.unlaxer.tinyexpression.parser;
import org.unlaxer.Token;
import org.unlaxer.tinyexpression.parser.javalang.JavaStyleDelimitedLazyChain;
import org.unlaxer.util.annotation.TokenExtractor;
public abstract class StringMethodExpressionParser extends JavaStyleDelimitedLazyChain{
private static final long serialVersionUID = 1992822145990889756L;
@TokenExtractor
public static Token getLeftExpression(Token thisParserParsed) {
return thisParserParsed.filteredChildren.get(0);
}
@TokenExtractor
public static Token getMethod(Token thisParserParsed) {
return thisParserParsed.filteredChildren.get(1);
}
}