public static class SemanticContext.TruePredicate extends SemanticContext.Predicate
SemanticContext.AND, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
constantValue, FALSE_PRED, gated, INVALID_PRED_VALUE, predicateAST, synpred, TRUE_PRED
EMPTY_SEMANTIC_CONTEXT
Constructor and Description |
---|
TruePredicate() |
Modifier and Type | Method and Description |
---|---|
org.antlr.stringtemplate.StringTemplate |
genExpr(CodeGenerator generator,
org.antlr.stringtemplate.StringTemplateGroup templates,
DFA dfa)
Generate an expression that will evaluate the semantic context,
given a set of output templates.
|
String |
toString() |
equals, getGatedPredicateContext, hashCode, isSyntacticPredicate, trackUseOfSyntacticPredicates
and, not, or
public org.antlr.stringtemplate.StringTemplate genExpr(CodeGenerator generator, org.antlr.stringtemplate.StringTemplateGroup templates, DFA dfa)
SemanticContext
genExpr
in class SemanticContext.Predicate
public String toString()
toString
in class SemanticContext.Predicate
Copyright © 2020. All rights reserved.