Package org.antlr.v4.codegen.model
Class SemPred
java.lang.Object
org.antlr.v4.codegen.model.OutputModelObject
org.antlr.v4.codegen.model.SrcOp
org.antlr.v4.codegen.model.RuleElement
org.antlr.v4.codegen.model.Action
org.antlr.v4.codegen.model.SemPred
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe translated chunks of the user-specified terminal optionfail
, if it was used and the value is an action.The user-specified terminal optionfail
, if it was used and the value is a string literal.The predicate string with{
and}?
stripped from the ends.Fields inherited from class org.antlr.v4.codegen.model.RuleElement
stateNumber
Fields inherited from class org.antlr.v4.codegen.model.SrcOp
enclosingBlock, enclosingRuleRunction, uniqueID
Fields inherited from class org.antlr.v4.codegen.model.OutputModelObject
ast, factory
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.antlr.v4.codegen.model.SrcOp
getContextName, getOuterMostAltCodeBlock
-
Field Details
-
msg
The user-specified terminal optionfail
, if it was used and the value is a string literal. For example:{pred}?<fail='message'>
-
predicate
The predicate string with{
and}?
stripped from the ends. -
failChunks
The translated chunks of the user-specified terminal optionfail
, if it was used and the value is an action. For example:{pred}?<fail={"Java literal"}>
-
-
Constructor Details
-
SemPred
-