public static class SemanticContext.AND extends SemanticContext.CommutativePredicate
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
EMPTY_SEMANTIC_CONTEXT
hashcode, operands
Constructor | Description |
---|---|
AND(HashSet<SemanticContext> contexts) |
|
AND(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, wait
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
equals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicates
public AND(SemanticContext a, SemanticContext b)
public AND(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–2019 ANTLR. All rights reserved.