public static class SemanticContext.OR extends SemanticContext.CommutativePredicate
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
hashcode, operands
EMPTY_SEMANTIC_CONTEXT
Constructor and Description |
---|
OR(HashSet<SemanticContext> contexts) |
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, trackUseOfSyntacticPredicates
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
public 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)
SemanticContext
genExpr
in class SemanticContext
public String getOperandString()
getOperandString
in class SemanticContext.CommutativePredicate
public SemanticContext combinePredicates(SemanticContext left, SemanticContext right)
combinePredicates
in class SemanticContext.CommutativePredicate
public int calculateHashCode()
calculateHashCode
in class SemanticContext.CommutativePredicate
Copyright © 1992–2015 ANTLR. All rights reserved.