
com.alibaba.qlexpress4.aparser.ParserOperatorManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qlexpress4 Show documentation
Show all versions of qlexpress4 Show documentation
QLExpress is a powerful, lightweight, dynamic language for the Java platform aimed at improving
developers’ productivity in different business scenes.
The newest version!
package com.alibaba.qlexpress4.aparser;
/**
* Author: DQinYuan
*/
public interface ParserOperatorManager {
enum OpType {
PREFIX,
SUFFIX,
MIDDLE
}
/**
* determine whether lexeme is opType or not
* @param lexeme lexeme
* @param opType type of operator
* @return true if lexeme is opType
*/
boolean isOpType(String lexeme, OpType opType);
/**
* get binary operator precedence
* @param lexeme lexeme
* @return null if lexeme not a operator
*/
Integer precedence(String lexeme);
/**
* get alias token type of lexeme
* @param lexeme
* @return alias token type
*/
Integer getAlias(String lexeme);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy