public class HopeLangEngine extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
HopeLangEngine.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HopeLangEngine.Builder |
builder()
Create a builder for the parser.
|
boolean |
evaluate(io.appform.hope.core.Evaluatable rule,
com.fasterxml.jackson.databind.JsonNode node)
Evaluate a hope lang parsed expression
|
boolean |
evaluate(String hopeLangExpression,
com.fasterxml.jackson.databind.JsonNode root)
Evaluates a hope expression using the provided json to return true or false.
|
io.appform.hope.core.Evaluatable |
parse(String hopeLangExpression)
Parse a hope lang string.
|
public boolean evaluate(String hopeLangExpression, com.fasterxml.jackson.databind.JsonNode root)
hopeLangExpression - A hope language expressionroot - The json node to be evaluatedpublic io.appform.hope.core.Evaluatable parse(String hopeLangExpression) throws io.appform.hope.core.exceptions.impl.HopeExpressionParserError
hopeLangExpression - Parse a stringio.appform.hope.core.exceptions.impl.HopeExpressionParserErrorpublic boolean evaluate(io.appform.hope.core.Evaluatable rule,
com.fasterxml.jackson.databind.JsonNode node)
rule - Parsed rulenode - JsonNode for which the match rule is to be evaluatedpublic static HopeLangEngine.Builder builder()
Copyright © 2019. All rights reserved.