Package io.dialob.rule.parser
Class Expression
- java.lang.Object
-
- io.dialob.rule.parser.Expression
-
- All Implemented Interfaces:
ErrorLogger
public class Expression extends Object implements ErrorLogger
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ASTVisitor visitor)static @NotNull ExpressioncreateExpression(@NotNull String expression)static @NotNull ExpressioncreateExpression(VariableFinder variableFinder, Map<NodeBase,String> asyncFunctionVariables, @NotNull String expression)Set<String>getAllIds()NodeBasegetAst()List<RuleExpressionCompilerError>getErrors()booleanhasErrors()voidlogError(String errorCode, Span span)voidlogError(String errorCode, Object[] args, Span span)ExpressionrenameId(String from, String to)StringtoString()
-
-
-
Method Detail
-
createExpression
@NotNull public static @NotNull Expression createExpression(@NotNull @NotNull String expression)
-
createExpression
@NotNull public static @NotNull Expression createExpression(VariableFinder variableFinder, Map<NodeBase,String> asyncFunctionVariables, @NotNull @NotNull String expression)
-
getErrors
public List<RuleExpressionCompilerError> getErrors()
-
hasErrors
public boolean hasErrors()
-
logError
public void logError(String errorCode, Span span)
- Specified by:
logErrorin interfaceErrorLogger
-
logError
public void logError(String errorCode, Object[] args, Span span)
- Specified by:
logErrorin interfaceErrorLogger
-
renameId
public Expression renameId(String from, String to)
-
accept
public void accept(ASTVisitor visitor)
-
getAst
public NodeBase getAst()
-
-