public interface IlrBRLSemanticFilter
For example, this is used when a rule is being edited in the text or the guided editor.
Semantic filters are associated to the node type of the business rule language definition in the concrete syntax .properties file,
with the property semanticFilter.
Semantic filters can also be associated to the role of a sentence (parameter of a BOM method or a BOM attribute) in the BOM file, with the property
semanticFilter[<argument_index>] for an argument of a method or semanticFilter for an attribute.
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptConcept(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrConcept concept)
States if a concept is accepted.
|
boolean |
acceptConceptInstance(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrConceptInstance conceptInstance)
States if a concept instance is accepted.
|
boolean |
acceptExpression(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrBRLGrammar.Node expression)
This method is invoked when an expression (grammar construction) can be predicted.
|
boolean |
acceptSentence(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrSentence sentence)
States if a sentence is accepted.
|
boolean |
acceptValue(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrConcept concept)
States if any value of the given concept is accepted.
|
boolean |
acceptVariable(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrBRLVariable variable)
States if a variable is accepted.
|
boolean acceptValue(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConcept concept)
context - The associated semantic context.node - The node under which a value can be added.concept - The concept representing the predicted value.true if a value is accepted, false otherwise.boolean acceptConceptInstance(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConceptInstance conceptInstance)
context - The associated semantic context.node - The node under which a concept instance can be added.conceptInstance - The predicted concept instance.true if the concept instance is accepted, false otherwise.boolean acceptSentence(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrSentence sentence)
context - The associated semantic context.node - The node under which a sentence can be added.sentence - The predicted sentence.true if the sentence is accepted, false otherwise.boolean acceptConcept(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConcept concept)
context - The associated semantic context.node - The node under which a concept can be added.concept - The predicted concept.true if the concept is accepted, false otherwise.boolean acceptVariable(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrBRLVariable variable)
context - The associated semantic context.node - The node under which a variable can be added.variable - The predicted variable.true if the variable is accepted, false otherwise.IlrBRLVariableboolean acceptExpression(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrBRLGrammar.Node expression)
context - The associated semantic context.node - The node under which an expression can be added.expression - The predicted expression.true if the expression is accepted, false otherwise.© Copyright IBM Corp. 1987, 2017