Package org.antlr.analysis
Class SemanticContext.OR
java.lang.Object
org.antlr.analysis.SemanticContext
org.antlr.analysis.SemanticContext.CommutativePredicate
org.antlr.analysis.SemanticContext.OR
- Enclosing class:
SemanticContext
-
Nested Class Summary
Nested classes/interfaces inherited from class org.antlr.analysis.SemanticContext
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate -
Field Summary
Fields inherited from class org.antlr.analysis.SemanticContext.CommutativePredicate
hashcode, operandsFields inherited from class org.antlr.analysis.SemanticContext
EMPTY_SEMANTIC_CONTEXT -
Constructor Summary
ConstructorsConstructorDescriptionOR(HashSet<SemanticContext> contexts) OR(SemanticContext a, SemanticContext b) -
Method Summary
Modifier and TypeMethodDescriptionintcombinePredicates(SemanticContext left, SemanticContext right) org.stringtemplate.v4.STgenExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa) Generate an expression that will evaluate the semantic context, given a set of output templates.Methods inherited from class org.antlr.analysis.SemanticContext.CommutativePredicate
equals, getGatedPredicateContext, hashCode, hasUserSemanticPredicate, isSyntacticPredicate, toString, trackUseOfSyntacticPredicatesMethods inherited from class org.antlr.analysis.SemanticContext
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
-
Constructor Details
-
OR
-
OR
-
-
Method Details
-
genExpr
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa) Description copied from class:SemanticContextGenerate an expression that will evaluate the semantic context, given a set of output templates.- Specified by:
genExprin classSemanticContext
-
getOperandString
- Specified by:
getOperandStringin classSemanticContext.CommutativePredicate
-
combinePredicates
- Specified by:
combinePredicatesin classSemanticContext.CommutativePredicate
-
calculateHashCode
public int calculateHashCode()- Specified by:
calculateHashCodein classSemanticContext.CommutativePredicate
-