public class IlrBRLSemanticFilterAdapter extends java.lang.Object implements IlrBRLSemanticFilter, IlrBRLSemanticFilterExtension
true
for all type of predictions.IlrBRLSemanticFilter| Constructor and Description |
|---|
IlrBRLSemanticFilterAdapter() |
| 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 |
acceptElement(IlrBRLSemanticContext context,
IlrSyntaxTree.Node node,
IlrBRLGrammar.Node element)
This method is invoked when an element of a grammar construction can be predicted.
|
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.
|
public boolean acceptValue(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConcept concept)
IlrBRLSemanticFilteracceptValue in interface IlrBRLSemanticFiltercontext - 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.public boolean acceptConceptInstance(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConceptInstance conceptInstance)
IlrBRLSemanticFilteracceptConceptInstance in interface IlrBRLSemanticFiltercontext - 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.public boolean acceptSentence(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrSentence sentence)
IlrBRLSemanticFilteracceptSentence in interface IlrBRLSemanticFiltercontext - 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.public boolean acceptConcept(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrConcept concept)
IlrBRLSemanticFilteracceptConcept in interface IlrBRLSemanticFiltercontext - 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.public boolean acceptVariable(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrBRLVariable variable)
IlrBRLSemanticFilteracceptVariable in interface IlrBRLSemanticFiltercontext - 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.IlrBRLVariablepublic boolean acceptExpression(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrBRLGrammar.Node expression)
IlrBRLSemanticFilteracceptExpression in interface IlrBRLSemanticFiltercontext - 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.public boolean acceptElement(IlrBRLSemanticContext context, IlrSyntaxTree.Node node, IlrBRLGrammar.Node element)
IlrBRLSemanticFilterExtensionacceptElement in interface IlrBRLSemanticFilterExtensioncontext - The associated semantic context.node - The node under which an element can be added.element - The predicted element.true if the element is accepted, and false otherwise.© Copyright IBM Corp. 1987, 2017