public static class SemanticContext.NOT extends SemanticContext
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate| Modifier and Type | Field | Description |
|---|---|---|
protected SemanticContext |
ctx |
EMPTY_SEMANTIC_CONTEXT| Constructor | Description |
|---|---|
NOT(SemanticContext ctx) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object object) |
|
org.stringtemplate.v4.ST |
genExpr(CodeGenerator generator,
org.stringtemplate.v4.STGroup 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.
|
int |
hashCode() |
|
boolean |
hasUserSemanticPredicate() |
|
boolean |
isSyntacticPredicate() |
|
String |
toString() |
|
void |
trackUseOfSyntacticPredicates(Grammar g) |
Notify the indicated grammar of any syn preds used within this context
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitand, factorAnd, factorOr, getAndOperands, getOrOperands, not, orprotected SemanticContext ctx
public NOT(SemanticContext ctx)
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
SemanticContextgenExpr in class SemanticContextpublic SemanticContext getGatedPredicateContext()
SemanticContextgetGatedPredicateContext in class SemanticContextpublic boolean hasUserSemanticPredicate()
hasUserSemanticPredicate in class SemanticContextpublic boolean isSyntacticPredicate()
isSyntacticPredicate in class SemanticContextpublic void trackUseOfSyntacticPredicates(Grammar g)
SemanticContexttrackUseOfSyntacticPredicates in class SemanticContextCopyright © 1992–2018 ANTLR. All rights reserved.