Package io.codemodder.ast
Class TryResourceDeclaration
java.lang.Object
io.codemodder.ast.LocalVariableDeclaration
io.codemodder.ast.TryResourceDeclaration
- All Implemented Interfaces:
LocalDeclaration
Holds the nodes in the AST that represents a variable declaration as a try resource. See Java Language
Specification - Section 14.20.3 for more details.
-
Field Summary
Fields inherited from class io.codemodder.ast.LocalVariableDeclaration
scope, vd, vde -
Constructor Summary
ConstructorsConstructorDescriptionTryResourceDeclaration(com.github.javaparser.ast.stmt.TryStmt stmt, com.github.javaparser.ast.expr.VariableDeclarationExpr vde, com.github.javaparser.ast.body.VariableDeclarator vd) -
Method Summary
Modifier and TypeMethodDescriptionprotected LocalScopecom.github.javaparser.ast.stmt.TryStmtReturns theTryStmtNodethat holds the resource declaration.Methods inherited from class io.codemodder.ast.LocalVariableDeclaration
fromVariableDeclarator, getDeclaration, getName, getScope, getVariableDeclarationExpr, getVariableDeclarator, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.codemodder.ast.LocalDeclaration
findAllMethodCalls, findAllReferences, isReference
-
Constructor Details
-
TryResourceDeclaration
public TryResourceDeclaration(com.github.javaparser.ast.stmt.TryStmt stmt, com.github.javaparser.ast.expr.VariableDeclarationExpr vde, com.github.javaparser.ast.body.VariableDeclarator vd)
-
-
Method Details
-
getStatement
public com.github.javaparser.ast.stmt.TryStmt getStatement()Returns theTryStmtNodethat holds the resource declaration.- Specified by:
getStatementin classLocalVariableDeclaration
-
findScope
- Specified by:
findScopein classLocalVariableDeclaration
-