Uses of Class
org.antlr.v4.automata.ATNFactory.Handle
Packages that use ATNFactory.Handle
-
Uses of ATNFactory.Handle in org.antlr.v4.automata
Methods in org.antlr.v4.automata that return ATNFactory.HandleModifier and TypeMethodDescriptionParserATNFactory._ruleRef
(GrammarAST node) Build what amounts to an epsilon transition with an action.protected ATNFactory.Handle
LexerATNFactory.action
(GrammarAST node, LexerAction lexerAction) Build what amounts to an epsilon transition with an action.ATNFactory.alt
(List<ATNFactory.Handle> els) ParserATNFactory.alt
(List<ATNFactory.Handle> els) ATNFactory.block
(BlockAST blockAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alternativeGrips) From A|B|..|Z alternative block build o->o-A->o->o (last ATNState is blockEndATNState pointed to by all alts) | ^ o->o-B->o--| | | ...ParserATNFactory.block
(BlockAST blkAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alts) FromA|B|..|Z
alternative block buildATNFactory.charSetLiteral
(GrammarAST charSetAST) LexerATNFactory.charSetLiteral
(GrammarAST charSetAST) [Aa\t ሴa-z\]\p{Letter}\-] char setsParserATNFactory.charSetLiteral
(GrammarAST charSetAST) [Aa]
char sets not allowed in parserParserATNFactory.elemList
(List<ATNFactory.Handle> els) ATNFactory.epsilon
(GrammarAST node) From an empty alternative build Grip o-e->oParserATNFactory.epsilon
(GrammarAST node) From an empty alternative buildo-e->o
.ATNFactory.label
(ATNFactory.Handle t) ParserATNFactory.label
(ATNFactory.Handle t) ATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) LexerATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) ParserATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) ATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) LexerATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) ParserATNFactory.lexerCallCommand
(GrammarAST ID, GrammarAST arg) private ATNFactory.Handle
LexerATNFactory.lexerCallCommandOrCommand
(GrammarAST ID, GrammarAST arg) ATNFactory.lexerCommand
(GrammarAST ID) LexerATNFactory.lexerCommand
(GrammarAST ID) ParserATNFactory.lexerCommand
(GrammarAST ID) ATNFactory.listLabel
(ATNFactory.Handle t) ParserATNFactory.listLabel
(ATNFactory.Handle t) protected ATNFactory.Handle
ParserATNFactory.makeBlock
(BlockStartState start, BlockAST blkAST, List<ATNFactory.Handle> alts) ATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From (A)? build either: o--A->o | ^ o---->| or, if A is a block, just add an empty alt to the end of the blockParserATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From(A)?
build either:ATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From (A)+ build |---| (Transition 2 from A.right points at alt 1) v | (follow of loop is Transition 1) o->o-A-o->o Meaning that the last ATNState in A points back to A's left Transition ATNState and we add a new begin/end ATNState.ParserATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From(blk)+
buildATNFactory.range
(GrammarAST a, GrammarAST b) LexerATNFactory.range
(GrammarAST a, GrammarAST b) ParserATNFactory.range
(GrammarAST a, GrammarAST b) Not valid for non-lexers.ATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) LexerATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ParserATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ATNFactory.ruleRef
(GrammarAST node) For reference to rule r, build o-e->(r) o where (r) is the start of rule r and the trailing o is not linked to from rule ref state directly (it's done thru the transition(0) RuleClosureTransition.ParserATNFactory.ruleRef
(GrammarAST node) For reference to ruler
, buildBuild what amounts to an epsilon transition with a semantic predicate action.Build what amounts to an epsilon transition with a semantic predicate action.ATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) LexerATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> alts, boolean invert) ParserATNFactory.set
(GrammarAST associatedAST, List<GrammarAST> terminals, boolean invert) From set build single edge grapho->o-set->o
.ATNFactory.star
(GrammarAST starAST, ATNFactory.Handle blk) From (A)* build |---| v | o->o-A-o--o (Transition 2 from block end points at alt 1; follow is Transition 1) | ^ o---------| (optional branch is 2nd alt of optional block containing A+) Meaning that the last (end) ATNState in A points back to A's left side ATNState and we add 3 new ATNStates (the optional branch is built just like an optional subrule).ParserATNFactory.star
(GrammarAST starAST, ATNFactory.Handle elem) From(blk)*
build( blk+ )?
with *two* decisions, one for entry and one for choosing alts ofblk
.ATNFactory.stringLiteral
(TerminalAST stringLiteralAST) For a non-lexer, just build a simple token reference atom.LexerATNFactory.stringLiteral
(TerminalAST stringLiteralAST) For a lexer, a string is a sequence of char to match.ParserATNFactory.stringLiteral
(TerminalAST stringLiteralAST) For a non-lexer, just build a simple token reference atom.ATNFactory.tokenRef
(TerminalAST node) LexerATNFactory.tokenRef
(TerminalAST node) ParserATNFactory.tokenRef
(TerminalAST node) From labelA
build grapho-A->o
.ATNFactory.wildcard
(GrammarAST associatedAST) Build an atom with all possible values in its labelParserATNFactory.wildcard
(GrammarAST node) Build an atom with all possible values in its label.Methods in org.antlr.v4.automata with parameters of type ATNFactory.HandleModifier and TypeMethodDescriptionATNFactory.label
(ATNFactory.Handle t) ParserATNFactory.label
(ATNFactory.Handle t) ATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) LexerATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) ParserATNFactory.lexerAltCommands
(ATNFactory.Handle alt, ATNFactory.Handle cmds) ATNFactory.listLabel
(ATNFactory.Handle t) ParserATNFactory.listLabel
(ATNFactory.Handle t) ATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From (A)? build either: o--A->o | ^ o---->| or, if A is a block, just add an empty alt to the end of the blockParserATNFactory.optional
(GrammarAST optAST, ATNFactory.Handle blk) From(A)?
build either:ATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From (A)+ build |---| (Transition 2 from A.right points at alt 1) v | (follow of loop is Transition 1) o->o-A-o->o Meaning that the last ATNState in A points back to A's left Transition ATNState and we add a new begin/end ATNState.ParserATNFactory.plus
(GrammarAST plusAST, ATNFactory.Handle blk) From(blk)+
buildATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) LexerATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ParserATNFactory.rule
(GrammarAST ruleAST, String name, ATNFactory.Handle blk) ATNFactory.star
(GrammarAST starAST, ATNFactory.Handle blk) From (A)* build |---| v | o->o-A-o--o (Transition 2 from block end points at alt 1; follow is Transition 1) | ^ o---------| (optional branch is 2nd alt of optional block containing A+) Meaning that the last (end) ATNState in A points back to A's left side ATNState and we add 3 new ATNStates (the optional branch is built just like an optional subrule).ParserATNFactory.star
(GrammarAST starAST, ATNFactory.Handle elem) From(blk)*
build( blk+ )?
with *two* decisions, one for entry and one for choosing alts ofblk
.Method parameters in org.antlr.v4.automata with type arguments of type ATNFactory.HandleModifier and TypeMethodDescriptionATNFactory.alt
(List<ATNFactory.Handle> els) ParserATNFactory.alt
(List<ATNFactory.Handle> els) ATNFactory.block
(BlockAST blockAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alternativeGrips) From A|B|..|Z alternative block build o->o-A->o->o (last ATNState is blockEndATNState pointed to by all alts) | ^ o->o-B->o--| | | ...ParserATNFactory.block
(BlockAST blkAST, GrammarAST ebnfRoot, List<ATNFactory.Handle> alts) FromA|B|..|Z
alternative block buildParserATNFactory.elemList
(List<ATNFactory.Handle> els) protected ATNFactory.Handle
ParserATNFactory.makeBlock
(BlockStartState start, BlockAST blkAST, List<ATNFactory.Handle> alts) -
Uses of ATNFactory.Handle in org.antlr.v4.parse
Fields in org.antlr.v4.parse declared as ATNFactory.HandleModifier and TypeFieldDescriptionATNBuilder.atom_return.p
ATNBuilder.blockSet_return.p
ATNBuilder.element_return.p
ATNBuilder.subrule_return.p
ATNBuilder.terminal_return.p
Methods in org.antlr.v4.parse that return ATNFactory.HandleModifier and TypeMethodDescriptionfinal ATNFactory.Handle
ATNBuilder.alternative()
final ATNFactory.Handle
ATNBuilder.astOperand()
final ATNFactory.Handle
ATNBuilder.block
(GrammarAST ebnfRoot) final ATNFactory.Handle
ATNBuilder.labeledElement()
final ATNFactory.Handle
ATNBuilder.lexerCommand()
final ATNFactory.Handle
ATNBuilder.lexerCommands()
final ATNFactory.Handle
ATNBuilder.range()
final ATNFactory.Handle
ATNBuilder.ruleBlock
(GrammarAST ebnfRoot) final ATNFactory.Handle
ATNBuilder.ruleref()