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
-
public class SemPred extends Action
-
-
Field Summary
Fields Modifier and Type Field Description List<ActionChunk>
failChunks
The translated chunks of the user-specified terminal optionfail
, if it was used and the value is an action.String
msg
The user-specified terminal optionfail
, if it was used and the value is a string literal.String
predicate
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 Constructor Description SemPred(OutputModelFactory factory, ActionAST ast)
-
-
-
Field Detail
-
msg
public String msg
The user-specified terminal optionfail
, if it was used and the value is a string literal. For example:{pred}?<fail='message'>
-
predicate
public String predicate
The predicate string with{
and}?
stripped from the ends.
-
failChunks
public List<ActionChunk> 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 Detail
-
SemPred
public SemPred(OutputModelFactory factory, ActionAST ast)
-
-