public static class SemanticContext.NOT extends SemanticContext
SemanticContext.AND, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
Modifier and Type | Field and Description |
---|---|
protected SemanticContext |
ctx |
EMPTY_SEMANTIC_CONTEXT
Constructor and Description |
---|
NOT(SemanticContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object object) |
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, or
protected SemanticContext ctx
public NOT(SemanticContext ctx)
public org.antlr.stringtemplate.StringTemplate genExpr(CodeGenerator generator, org.antlr.stringtemplate.StringTemplateGroup templates, DFA dfa)
SemanticContext
genExpr
in class SemanticContext
public SemanticContext getGatedPredicateContext()
SemanticContext
getGatedPredicateContext
in class SemanticContext
public boolean isSyntacticPredicate()
isSyntacticPredicate
in class SemanticContext
public void trackUseOfSyntacticPredicates(Grammar g)
SemanticContext
trackUseOfSyntacticPredicates
in class SemanticContext
Copyright © 2020. All rights reserved.