Top Fields Constructors
org.antlr.v4.codegen.model

public Class SemPred

extends Action
Class Inheritance
Imports
org.antlr.v4.codegen.ActionTranslator, .CodeGenerator, .OutputModelFactory, org.antlr.v4.codegen.model.chunk.ActionChunk, org.antlr.v4.runtime.atn.AbstractPredicateTransition, org.antlr.v4.tool.ast.ActionAST, .GrammarAST, java.util.List

Field Summary

Modifier and TypeField and Description
public List<ActionChunk>
failChunks

The translated chunks of the user-specified terminal option fail, if it was used and the value is an action.

public String
msg

The user-specified terminal option fail, if it was used and the value is a string literal.

public String
predicate

The predicate string with { and }?

Inherited from org.antlr.v4.codegen.model.Action:
chunks

Constructor Summary

AccessConstructor and Description
public

Field Detail

failChunksback to summary
public List<ActionChunk> failChunks

The translated chunks of the user-specified terminal option fail, if it was used and the value is an action. For example:

{pred}?<fail={"Java literal"}>

Annotations
@ModelElement
msgback to summary
public String msg

The user-specified terminal option fail, if it was used and the value is a string literal. For example:

{pred}?<fail='message'>

predicateback to summary
public String predicate

The predicate string with { and }? stripped from the ends.

Constructor Detail

SemPredback to summary
public SemPred(OutputModelFactory factory, ActionAST ast)