antlr4-helper > "parser/antlr-rule-wrapper" > AntlrRuleWrapper
AntlrRuleWrapper
- createRuleError
- exists
- findRuleByName
- findRuleByPath
- findRulesByName
- findRulesByPath
- getChildren
- getName
- getParent
- getRange
- getRule
- getSiblings
- getText
- getToken
- getTokens
- hasToken
- inRange
- setText
▸ createRuleError(): AntlrRuleError
Returns: AntlrRuleError
▸ exists(): boolean
Returns: boolean
▸ findRuleByName(ruleName: string
): AntlrRuleWrapper
Parameters:
Param | Type |
---|---|
ruleName | string |
Returns: AntlrRuleWrapper
▸ findRuleByPath(xpath: string
): AntlrRuleWrapper
Parameters:
Param | Type |
---|---|
xpath | string |
Returns: AntlrRuleWrapper
▸ findRulesByName(ruleName: string
): AntlrRuleWrapper[]
Parameters:
Param | Type |
---|---|
ruleName | string |
Returns: AntlrRuleWrapper[]
▸ findRulesByPath(xpath: string
): AntlrRuleWrapper[]
Parameters:
Param | Type |
---|---|
xpath | string |
Returns: AntlrRuleWrapper[]
▸ getChildren(): AntlrRuleWrapper[]
Returns: AntlrRuleWrapper[]
▸ getName(): string
Returns: string
▸ getParent(): AntlrRuleWrapper
Returns: AntlrRuleWrapper
▸ getRange(): AntlrRange
Returns: AntlrRange
▸ getRule(): ParserRuleContext
Returns: ParserRuleContext
▸ getSiblings(): AntlrRuleWrapper[]
Returns: AntlrRuleWrapper[]
▸ getText(): string
Returns: string
▸ getToken(tokenRuleName?: string
): AntlrTokenWrapper
Parameters:
Param | Type |
---|---|
Optional tokenRuleName |
string |
Returns: AntlrTokenWrapper
▸ getTokens(tokenRuleName?: string
): AntlrTokenWrapper[]
Parameters:
Param | Type |
---|---|
Optional tokenRuleName |
string |
Returns: AntlrTokenWrapper[]
▸ hasToken(tokenRuleName: string
): boolean
Parameters:
Param | Type |
---|---|
tokenRuleName | string |
Returns: boolean
▸ inRange(point: object
): boolean
Parameters:
Param | Type |
---|---|
point | object |
Returns: boolean
▸ setText(text: string
): void
Parameters:
Param | Type |
---|---|
text | string |
Returns: void