All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.unlaxer.tinyexpression.parser.StringMethodExpressionParser Maven / Gradle / Ivy

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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy