Class JavaLanguageParser.TryWithResourceStatContext
java.lang.Object
org.antlr.v4.runtime.RuleContext
org.antlr.v4.runtime.ParserRuleContext
com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StatementContext
com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.TryWithResourceStatContext
- All Implemented Interfaces:
org.antlr.v4.runtime.tree.ParseTree
,org.antlr.v4.runtime.tree.RuleNode
,org.antlr.v4.runtime.tree.SyntaxTree
,org.antlr.v4.runtime.tree.Tree
- Enclosing class:
JavaLanguageParser
public static class JavaLanguageParser.TryWithResourceStatContext
extends JavaLanguageParser.StatementContext
-
Field Summary
Fields inherited from class org.antlr.v4.runtime.ParserRuleContext
children, EMPTY, exception, start, stop
Fields inherited from class org.antlr.v4.runtime.RuleContext
invokingState, parent
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> T
accept
(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor) block()
catchClause
(int i) org.antlr.v4.runtime.tree.TerminalNode
Methods inherited from class com.puppycrawl.tools.checkstyle.grammar.java.JavaLanguageParser.StatementContext
copyFrom, getRuleIndex
Methods inherited from class org.antlr.v4.runtime.ParserRuleContext
addAnyChild, addChild, addChild, addChild, addErrorNode, addErrorNode, copyFrom, enterRule, exitRule, getChild, getChild, getChildCount, getParent, getRuleContext, getRuleContexts, getSourceInterval, getStart, getStop, getToken, getTokens, removeLastChild, toInfoString
Methods inherited from class org.antlr.v4.runtime.RuleContext
depth, getAltNumber, getPayload, getRuleContext, getText, isEmpty, setAltNumber, setParent, toString, toString, toString, toString, toString, toStringTree, toStringTree, toStringTree
-
Constructor Details
-
TryWithResourceStatContext
-
-
Method Details
-
LITERAL_TRY
public org.antlr.v4.runtime.tree.TerminalNode LITERAL_TRY() -
resourceSpecification
-
block
-
catchClause
-
catchClause
-
finallyBlock
-
accept
public <T> T accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T> visitor) - Specified by:
accept
in interfaceorg.antlr.v4.runtime.tree.ParseTree
- Overrides:
accept
in classorg.antlr.v4.runtime.RuleContext
-