CommonRegexVisitor interface

This interface defines a complete generic visitor for a parse tree produced by CommonRegexParser.

Extends

ParseTreeVisitor<Result>

Properties

visitAlpha_nums

Visit a parse tree produced by CommonRegexParser.alpha_nums.

visitAlternation

Visit a parse tree produced by CommonRegexParser.alternation.

visitAtom

Visit a parse tree produced by CommonRegexParser.atom.

visitCapture

Visit a parse tree produced by CommonRegexParser.capture.

visitCc_atom

Visit a parse tree produced by CommonRegexParser.cc_atom.

visitCc_literal

Visit a parse tree produced by CommonRegexParser.cc_literal.

visitCharacter_class

Visit a parse tree produced by CommonRegexParser.character_class.

visitDigit

Visit a parse tree produced by CommonRegexParser.digit.

visitDigits

Visit a parse tree produced by CommonRegexParser.digits.

visitElement

Visit a parse tree produced by CommonRegexParser.element.

visitExpr

Visit a parse tree produced by CommonRegexParser.expr.

visitLetter

Visit a parse tree produced by CommonRegexParser.letter.

visitLiteral

Visit a parse tree produced by CommonRegexParser.literal.

visitName

Visit a parse tree produced by CommonRegexParser.name.

visitNon_capture

Visit a parse tree produced by CommonRegexParser.non_capture.

visitNon_close_paren

Visit a parse tree produced by CommonRegexParser.non_close_paren.

visitNon_close_parens

Visit a parse tree produced by CommonRegexParser.non_close_parens.

visitNumber

Visit a parse tree produced by CommonRegexParser.number.

visitOctal_char

Visit a parse tree produced by CommonRegexParser.octal_char.

visitOctal_digit

Visit a parse tree produced by CommonRegexParser.octal_digit.

visitOption

Visit a parse tree produced by CommonRegexParser.option.

visitOption_flag

Visit a parse tree produced by CommonRegexParser.option_flag.

visitParse

Visit a parse tree produced by CommonRegexParser.parse.

visitQuantifier

Visit a parse tree produced by CommonRegexParser.quantifier.

visitQuantifier_type

Visit a parse tree produced by CommonRegexParser.quantifier_type.

visitShared_atom

Visit a parse tree produced by CommonRegexParser.shared_atom.

visitShared_literal

Visit a parse tree produced by CommonRegexParser.shared_literal.

Inherited Methods

visit(ParseTree)

Visit a parse tree, and return a user-defined result of the operation.

visitChildren(RuleNode)

Visit the children of a node, and return a user-defined result of the operation.

visitErrorNode(ErrorNode)

Visit an error node, and return a user-defined result of the operation.

visitTerminal(TerminalNode)

Visit a terminal node, and return a user-defined result of the operation.

Property Details

visitAlpha_nums

Visit a parse tree produced by CommonRegexParser.alpha_nums.

visitAlpha_nums?: (ctx: Alpha_numsContext) => Result

Property Value

(ctx: Alpha_numsContext) => Result

visitAlternation

Visit a parse tree produced by CommonRegexParser.alternation.

visitAlternation?: (ctx: AlternationContext) => Result

Property Value

(ctx: AlternationContext) => Result

visitAtom

Visit a parse tree produced by CommonRegexParser.atom.

visitAtom?: (ctx: AtomContext) => Result

Property Value

(ctx: AtomContext) => Result

visitCapture

Visit a parse tree produced by CommonRegexParser.capture.

visitCapture?: (ctx: CaptureContext) => Result

Property Value

(ctx: CaptureContext) => Result

visitCc_atom

Visit a parse tree produced by CommonRegexParser.cc_atom.

visitCc_atom?: (ctx: Cc_atomContext) => Result

Property Value

(ctx: Cc_atomContext) => Result

visitCc_literal

Visit a parse tree produced by CommonRegexParser.cc_literal.

visitCc_literal?: (ctx: Cc_literalContext) => Result

Property Value

(ctx: Cc_literalContext) => Result

visitCharacter_class

Visit a parse tree produced by CommonRegexParser.character_class.

visitCharacter_class?: (ctx: Character_classContext) => Result

Property Value

(ctx: Character_classContext) => Result

visitDigit

Visit a parse tree produced by CommonRegexParser.digit.

visitDigit?: (ctx: DigitContext) => Result

Property Value

(ctx: DigitContext) => Result

visitDigits

Visit a parse tree produced by CommonRegexParser.digits.

visitDigits?: (ctx: DigitsContext) => Result

Property Value

(ctx: DigitsContext) => Result

visitElement

Visit a parse tree produced by CommonRegexParser.element.

visitElement?: (ctx: ElementContext) => Result

Property Value

(ctx: ElementContext) => Result

visitExpr

Visit a parse tree produced by CommonRegexParser.expr.

visitExpr?: (ctx: ExprContext) => Result

Property Value

(ctx: ExprContext) => Result

visitLetter

Visit a parse tree produced by CommonRegexParser.letter.

visitLetter?: (ctx: LetterContext) => Result

Property Value

(ctx: LetterContext) => Result

visitLiteral

Visit a parse tree produced by CommonRegexParser.literal.

visitLiteral?: (ctx: LiteralContext) => Result

Property Value

(ctx: LiteralContext) => Result

visitName

Visit a parse tree produced by CommonRegexParser.name.

visitName?: (ctx: NameContext) => Result

Property Value

(ctx: NameContext) => Result

visitNon_capture

Visit a parse tree produced by CommonRegexParser.non_capture.

visitNon_capture?: (ctx: Non_captureContext) => Result

Property Value

(ctx: Non_captureContext) => Result

visitNon_close_paren

Visit a parse tree produced by CommonRegexParser.non_close_paren.

visitNon_close_paren?: (ctx: Non_close_parenContext) => Result

Property Value

(ctx: Non_close_parenContext) => Result

visitNon_close_parens

Visit a parse tree produced by CommonRegexParser.non_close_parens.

visitNon_close_parens?: (ctx: Non_close_parensContext) => Result

Property Value

(ctx: Non_close_parensContext) => Result

visitNumber

Visit a parse tree produced by CommonRegexParser.number.

visitNumber?: (ctx: NumberContext) => Result

Property Value

(ctx: NumberContext) => Result

visitOctal_char

Visit a parse tree produced by CommonRegexParser.octal_char.

visitOctal_char?: (ctx: Octal_charContext) => Result

Property Value

(ctx: Octal_charContext) => Result

visitOctal_digit

Visit a parse tree produced by CommonRegexParser.octal_digit.

visitOctal_digit?: (ctx: Octal_digitContext) => Result

Property Value

(ctx: Octal_digitContext) => Result

visitOption

Visit a parse tree produced by CommonRegexParser.option.

visitOption?: (ctx: OptionContext) => Result

Property Value

(ctx: OptionContext) => Result

visitOption_flag

Visit a parse tree produced by CommonRegexParser.option_flag.

visitOption_flag?: (ctx: Option_flagContext) => Result

Property Value

(ctx: Option_flagContext) => Result

visitParse

Visit a parse tree produced by CommonRegexParser.parse.

visitParse?: (ctx: ParseContext) => Result

Property Value

(ctx: ParseContext) => Result

visitQuantifier

Visit a parse tree produced by CommonRegexParser.quantifier.

visitQuantifier?: (ctx: QuantifierContext) => Result

Property Value

(ctx: QuantifierContext) => Result

visitQuantifier_type

Visit a parse tree produced by CommonRegexParser.quantifier_type.

visitQuantifier_type?: (ctx: Quantifier_typeContext) => Result

Property Value

(ctx: Quantifier_typeContext) => Result

visitShared_atom

Visit a parse tree produced by CommonRegexParser.shared_atom.

visitShared_atom?: (ctx: Shared_atomContext) => Result

Property Value

(ctx: Shared_atomContext) => Result

visitShared_literal

Visit a parse tree produced by CommonRegexParser.shared_literal.

visitShared_literal?: (ctx: Shared_literalContext) => Result

Property Value

(ctx: Shared_literalContext) => Result

Inherited Method Details

visit(ParseTree)

Visit a parse tree, and return a user-defined result of the operation.

function visit(tree: ParseTree): Result

Parameters

tree

ParseTree

The buildParseTree to visit.

Returns

Result

The result of visiting the parse tree.

Inherited From ParseTreeVisitor.visit

visitChildren(RuleNode)

Visit the children of a node, and return a user-defined result of the operation.

function visitChildren(node: RuleNode): Result

Parameters

node

RuleNode

The <xref:RuleNode> whose children should be visited.

Returns

Result

The result of visiting the children of the node.

Inherited From ParseTreeVisitor.visitChildren

visitErrorNode(ErrorNode)

Visit an error node, and return a user-defined result of the operation.

function visitErrorNode(node: ErrorNode): Result

Parameters

node

ErrorNode

The addErrorNode(ErrorNode) to visit.

Returns

Result

The result of visiting the node.

Inherited From ParseTreeVisitor.visitErrorNode

visitTerminal(TerminalNode)

Visit a terminal node, and return a user-defined result of the operation.

function visitTerminal(node: TerminalNode): Result

Parameters

node

TerminalNode

The createTerminalNode(ParserRuleContext, Token) to visit.

Returns

Result

The result of visiting the node.

Inherited From ParseTreeVisitor.visitTerminal