Class BooleanExpressionCompiler
java.lang.Object
me.lucko.luckperms.common.verbose.expression.BooleanExpressionCompiler
Compiler for boolean expressions with variables.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAST for a boolean expression.static final classRepresents a lexing error.static final classRepresents a parsing error.static interfaceEvaluates the value of variables within an expression. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompiles anBooleanExpressionCompiler.ASTfor a given boolean expression.
-
Constructor Details
-
BooleanExpressionCompiler
public BooleanExpressionCompiler()
-
-
Method Details
-
compile
public static BooleanExpressionCompiler.AST compile(String expression) throws BooleanExpressionCompiler.LexerException, BooleanExpressionCompiler.ParserException Compiles anBooleanExpressionCompiler.ASTfor a given boolean expression.- Parameters:
expression- the expression string- Returns:
- the compiled AST
- Throws:
BooleanExpressionCompiler.LexerException- if an error occurs when lexing the expressionBooleanExpressionCompiler.ParserException- if an error occurs when parsing the expression
-