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
public abstract static class Java.TryStatement.Resource extends Java.Located
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract <R,EX extends java.lang.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 Detail
-
Resource
protected Resource(Location location)
-
-
Method Detail
-
setEnclosingTryStatement
public abstract void setEnclosingTryStatement(Java.TryStatement tryStatement)
Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resource
objects.
-
accept
@Nullable public abstract <R,EX extends java.lang.Throwable> R accept(Visitor.TryStatementResourceVisitor<R,EX> visitor) throws EX extends java.lang.Throwable
Invokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.- Throws:
EX extends java.lang.Throwable
-
-