com.alibaba.simpleEL.dialect.ql.parser.AbstractQLParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of SimpleEL Show documentation
Show all versions of SimpleEL Show documentation
simple expression language implementation
The newest version!
package com.alibaba.simpleEL.dialect.ql.parser;
import com.alibaba.simpleEL.ELException;
public class AbstractQLParser {
protected final QLLexer lexer;
public AbstractQLParser(QLLexer lexer) {
super();
this.lexer = lexer;
}
public QLLexer getLexer() {
return lexer;
}
public void accept(QLToken token) {
if (lexer.token() == token) {
lexer.nextToken();
} else {
throw new ELException("syntax error, expect " + token + ", actual "
+ lexer.token());
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy