Class JexlRuleValidator.Result

java.lang.Object
net.simplace.core.jexl.JexlRuleValidator.Result
Enclosing class:
JexlRuleValidator

public static final class JexlRuleValidator.Result extends Object
Result of a check.
Author:
Andreas Enders, Claude (Anthropic), co-author
  • Method Details

    • getRule

      public String getRule()
      Returns:
      the checked rule
    • getComplexity

      public JexlRuleScript.COMPLEXITY getComplexity()
      Returns:
      how the rule is evaluated (VALUE: used as plain value)
    • getError

      public String getError()
      Returns:
      the syntax error, or null
    • getLine

      public int getLine()
      Returns:
      line of the syntax error in the rule (1-based), or -1
    • getColumn

      public int getColumn()
      Returns:
      column of the syntax error in the rule (1-based), or -1
    • getVariables

      public Set<String> getVariables()
      Returns:
      the variables used as ${...}, in order of appearance
    • getUnknownVariables

      public Set<String> getUnknownVariables()
      Returns:
      the used variables that are not known (only if known variables were given)
    • getHints

      public List<String> getHints()
      Returns:
      hints that do not make the rule invalid (operators, plain value)
    • isSyntaxValid

      public boolean isSyntaxValid()
      Returns:
      true if the rule has no syntax error
    • isValid

      public boolean isValid()
      Returns:
      true if the rule has no syntax error and no unknown variable
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a one-line description: error with position, unknown variables, hints