public static class SemanticContext.OR extends SemanticContext.CommutativePredicate
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicateEMPTY_SEMANTIC_CONTEXThashcode, operands| Constructor | Description |
|---|---|
OR(HashSet<SemanticContext> contexts) |
|
OR(SemanticContext a,
SemanticContext b) |
| Modifier and Type | Method | 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() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitand, factorAnd, factorOr, getAndOperands, getOrOperands, not, orequals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicatespublic OR(SemanticContext a, SemanticContext b)
public 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–2018 ANTLR. All rights reserved.