public interface IlrValueChecker
IlrValueChecker checks the usage of a literal value at a
specific place in the rule, and provides a mechanism to report an error.
A context is given to check the literal value. This context is the node that represents the value in the abstract syntax tree of the rule. Note that, for this checker, concept instances are considered to be a value. They can be checked using this mechanism when the constants are predicted in rule editors and when the syntax tree is semantically checked.
| Modifier and Type | Method and Description |
|---|---|
boolean |
check(java.lang.Object value,
IlrSyntaxTree.Node node,
IlrValueError valueError)
Checks if the given value is acceptable in the given branch of the Abstract Syntax Tree.
|
boolean check(java.lang.Object value,
IlrSyntaxTree.Node node,
IlrValueError valueError)
value - The value which can be a literal or a Concept Instance.node - The parent node under which the value is added .valueError - The error that can be filled to parameterize the error message.
That parameter can be null when no error message is reported.true if the given value is accepted, and false otherwise.© Copyright IBM Corp. 1987, 2017