public static class SemanticContext.TruePredicate extends SemanticContext.Predicate
SemanticContext.AND, SemanticContext.CommutativePredicate, SemanticContext.FalsePredicate, SemanticContext.NOT, SemanticContext.OR, SemanticContext.Predicate, SemanticContext.TruePredicate
EMPTY_SEMANTIC_CONTEXT
constantValue, FALSE_PRED, gated, INVALID_PRED_VALUE, predicateAST, synpred, TRUE_PRED
Constructor | Description |
---|---|
TruePredicate() |
Modifier and Type | Method | Description |
---|---|---|
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.
|
boolean |
hasUserSemanticPredicate() |
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
and, factorAnd, factorOr, getAndOperands, getOrOperands, not, or
equals, getGatedPredicateContext, hashCode, isSyntacticPredicate, trackUseOfSyntacticPredicates
public org.stringtemplate.v4.ST genExpr(CodeGenerator generator, org.stringtemplate.v4.STGroup templates, DFA dfa)
SemanticContext
genExpr
in class SemanticContext.Predicate
public boolean hasUserSemanticPredicate()
hasUserSemanticPredicate
in class SemanticContext.Predicate
public String toString()
toString
in class SemanticContext.Predicate
Copyright © 1992–2019 ANTLR. All rights reserved.