public static class SemanticContext.AND extends SemanticContext
SemanticContext.AND, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate| Modifier and Type | Field and Description |
|---|---|
protected SemanticContext |
left |
protected SemanticContext |
right |
EMPTY_SEMANTIC_CONTEXT| Constructor and Description |
|---|
AND(SemanticContext a,
SemanticContext b) |
| Modifier and Type | Method and Description |
|---|---|
org.antlr.stringtemplate.StringTemplate |
genExpr(CodeGenerator generator,
org.antlr.stringtemplate.StringTemplateGroup templates,
DFA dfa)
Generate an expression that will evaluate the semantic context,
given a set of output templates.
|
SemanticContext |
getGatedPredicateContext()
Given a semantic context expression tree, return a tree with all
nongated predicates set to true and then reduced.
|
boolean |
isSyntacticPredicate() |
String |
toString() |
void |
trackUseOfSyntacticPredicates(Grammar g)
Notify the indicated grammar of any syn preds used within this context
|
and, not, orprotected SemanticContext left
protected SemanticContext right
public AND(SemanticContext a, SemanticContext b)
public org.antlr.stringtemplate.StringTemplate genExpr(CodeGenerator generator, org.antlr.stringtemplate.StringTemplateGroup templates, DFA dfa)
SemanticContextgenExpr in class SemanticContextpublic SemanticContext getGatedPredicateContext()
SemanticContextgetGatedPredicateContext in class SemanticContextpublic boolean isSyntacticPredicate()
isSyntacticPredicate in class SemanticContextpublic void trackUseOfSyntacticPredicates(Grammar g)
SemanticContexttrackUseOfSyntacticPredicates in class SemanticContextCopyright © 2025. All rights reserved.