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 and Description |
|---|---|
protected SemanticContext |
ctx |
EMPTY_SEMANTIC_CONTEXT| Constructor and Description |
|---|
SemanticContext.NOT(SemanticContext ctx) |
| Modifier and Type | Method and 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
|
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, orprotected SemanticContext ctx
public SemanticContext.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–2014 ANTLR. All rights reserved.