public static class SemanticContext.OR extends SemanticContext
SemanticContext.AND, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate| Modifier and Type | Field and Description |
|---|---|
protected java.util.Set |
operands |
EMPTY_SEMANTIC_CONTEXT| Constructor and Description |
|---|
SemanticContext.OR(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() |
java.lang.String |
toString() |
void |
trackUseOfSyntacticPredicates(Grammar g)
Notify the indicated grammar of any syn preds used within this context
|
and, not, orpublic SemanticContext.OR(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 SemanticContextpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2012. All Rights Reserved.