public class TryWithResourcesASTTransformation extends Object
Constructor and Description |
---|
TryWithResourcesASTTransformation(AstBuilder astBuilder) |
Modifier and Type | Method and Description |
---|---|
Statement |
transform(TryCatchStatement tryCatchStatement)
Reference JLS "14.20.3.
|
BinaryExpression |
transformResourceAccess(Expression variableAccessExpression)
See https://docs.oracle.com/javase/specs/jls/se9/html/jls-14.html
14.20.3.1.
|
public TryWithResourcesASTTransformation(AstBuilder astBuilder)
public Statement transform(TryCatchStatement tryCatchStatement)
tryCatchStatement
- the try-with-resources statement to transformpublic BinaryExpression transformResourceAccess(Expression variableAccessExpression)