public abstract static class SemanticContext.CommutativePredicate extends SemanticContext
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate| Modifier and Type | Field and Description |
|---|---|
protected int |
hashcode |
protected Set<SemanticContext> |
operands |
EMPTY_SEMANTIC_CONTEXT| Constructor and Description |
|---|
SemanticContext.CommutativePredicate(HashSet<SemanticContext> contexts) |
SemanticContext.CommutativePredicate(SemanticContext a,
SemanticContext b) |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
calculateHashCode() |
abstract SemanticContext |
combinePredicates(SemanticContext left,
SemanticContext right) |
boolean |
equals(Object obj) |
SemanticContext |
getGatedPredicateContext()
Given a semantic context expression tree, return a tree with all
nongated predicates set to true and then reduced.
|
abstract String |
getOperandString() |
int |
hashCode() |
boolean |
hasUserSemanticPredicate() |
boolean |
isSyntacticPredicate() |
String |
toString() |
void |
trackUseOfSyntacticPredicates(Grammar g)
Notify the indicated grammar of any syn preds used within this context
|
and, factorAnd, factorOr, genExpr, getAndOperands, getOrOperands, not, orprotected final Set<SemanticContext> operands
protected int hashcode
public SemanticContext.CommutativePredicate(SemanticContext a, SemanticContext b)
public SemanticContext.CommutativePredicate(HashSet<SemanticContext> contexts)
public SemanticContext getGatedPredicateContext()
SemanticContextgetGatedPredicateContext in class SemanticContextpublic boolean hasUserSemanticPredicate()
hasUserSemanticPredicate in class SemanticContextpublic boolean isSyntacticPredicate()
isSyntacticPredicate in class SemanticContextpublic void trackUseOfSyntacticPredicates(Grammar g)
SemanticContexttrackUseOfSyntacticPredicates in class SemanticContextpublic abstract String getOperandString()
public abstract SemanticContext combinePredicates(SemanticContext left, SemanticContext right)
public abstract int calculateHashCode()
Copyright © 1992–2014 ANTLR. All rights reserved.