Package org.antlr.analysis
Class SemanticContext.TruePredicate
java.lang.Object
org.antlr.analysis.SemanticContext
org.antlr.analysis.SemanticContext.Predicate
org.antlr.analysis.SemanticContext.TruePredicate
- 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.Predicate
constantValue, FALSE_PRED, gated, INVALID_PRED_VALUE, predicateAST, synpred, TRUE_PRED
Fields inherited from class org.antlr.analysis.SemanticContext
EMPTY_SEMANTIC_CONTEXT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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.boolean
toString()
Methods inherited from class org.antlr.analysis.SemanticContext.Predicate
equals, getGatedPredicateContext, hashCode, isSyntacticPredicate, trackUseOfSyntacticPredicates
Methods inherited from class org.antlr.analysis.SemanticContext
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
-
Constructor Details
-
TruePredicate
public TruePredicate()
-
-
Method Details
-
genExpr
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa) Description copied from class:SemanticContext
Generate an expression that will evaluate the semantic context, given a set of output templates.- Overrides:
genExpr
in classSemanticContext.Predicate
-
hasUserSemanticPredicate
public boolean hasUserSemanticPredicate()- Overrides:
hasUserSemanticPredicate
in classSemanticContext.Predicate
-
toString
- Overrides:
toString
in classSemanticContext.Predicate
-