Package org.codehaus.janino
Class Java.TryStatement.VariableAccessResource
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.TryStatement.Resource
org.codehaus.janino.Java.TryStatement.VariableAccessResource
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
Java.TryStatement
Representation of a JLS9 14.20.2 "variable-access resource" in a TRY-with-resources statement.
-
Field Summary
FieldsFields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<R,
EX extends Throwable>
Raccept
(Visitor.TryStatementResourceVisitor<R, EX> visitor) Invokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.void
Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resource
objects.toString()
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
Field Details
-
variableAccess
The rvalue of this resource.
-
-
Constructor Details
-
VariableAccessResource
-
-
Method Details
-
setEnclosingTryStatement
Description copied from class:Java.TryStatement.Resource
Sets the enclosing scope for this object and all subordinateJava.TryStatement.Resource
objects.- Specified by:
setEnclosingTryStatement
in classJava.TryStatement.Resource
-
accept
@Nullable public <R,EX extends Throwable> R accept(Visitor.TryStatementResourceVisitor<R, EX> visitor) throws EXDescription copied from class:Java.TryStatement.Resource
Invokes the "visit...()
" method ofVisitor.TryStatementResourceVisitor
for the concreteJava.TryStatement.Resource
type.- Specified by:
accept
in classJava.TryStatement.Resource
- Throws:
EX
-
toString
-