Package org.codehaus.janino
Class Java.TryStatement.Resource
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.TryStatement.Resource
- All Implemented Interfaces:
Java.Locatable
- Direct Known Subclasses:
Java.TryStatement.LocalVariableDeclaratorResource
,Java.TryStatement.VariableAccessResource
- Enclosing class:
Java.TryStatement
Representation of a JLS9 14.20.2 "resource" in a TRY-with-resources statement.
-
Field Summary
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract <R,
EX extends Throwable>
Raccept
(Visitor.TryStatementResourceVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.abstract void
setEnclosingTryStatement
(Java.TryStatement tryStatement) Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resource
objects.Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Constructor Details
-
Resource
-
-
Method Details
-
setEnclosingTryStatement
Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resource
objects. -
accept
@Nullable public abstract <R,EX extends Throwable> R accept(Visitor.TryStatementResourceVisitor<R, EX> visitor) throws EXInvokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.- Throws:
EX
-