public static class SemanticContext.OR extends SemanticContext.CommutativePredicate
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicatehashcode, operandsEMPTY_SEMANTIC_CONTEXT| Constructor and Description |
|---|
SemanticContext.OR(HashSet<SemanticContext> contexts) |
SemanticContext.OR(SemanticContext a,
SemanticContext b) |
| Modifier and Type | Method and Description |
|---|---|
int |
calculateHashCode() |
SemanticContext |
combinePredicates(SemanticContext left,
SemanticContext right) |
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.
|
String |
getOperandString() |
equals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicatesand, factorAnd, factorOr, getAndOperands, getOrOperands, not, orpublic SemanticContext.OR(SemanticContext a, SemanticContext b)
public SemanticContext.OR(HashSet<SemanticContext> contexts)
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
SemanticContextgenExpr in class SemanticContextpublic String getOperandString()
getOperandString in class SemanticContext.CommutativePredicatepublic SemanticContext combinePredicates(SemanticContext left, SemanticContext right)
combinePredicates in class SemanticContext.CommutativePredicatepublic int calculateHashCode()
calculateHashCode in class SemanticContext.CommutativePredicateCopyright © 1992–2014 ANTLR. All rights reserved.