new ExpressionStatement( new AssignmentExpression( new IdentifierExpressionBackReference("savedException").toExpression(), new NamedNode("caughtException", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new ThrowStatement(new IdentifierExpressionBackReference("caughtException").toExpression()) new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("resource").toExpression().invoke("close") new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("savedException").toExpression().invoke( "addSuppressed", new NamedNode("caughtOnClose", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new IfElseStatement( Expression.MYSTERY_OFFSET, new BinaryOperatorExpression( new IdentifierExpressionBackReference("resource").toExpression(), BinaryOperatorType.INEQUALITY, new NullReferenceExpression(Expression.MYSTERY_OFFSET) new IfElseStatement( Expression.MYSTERY_OFFSET, new BinaryOperatorExpression( new IdentifierExpressionBackReference("savedException").toExpression(), BinaryOperatorType.INEQUALITY, new NullReferenceExpression(Expression.MYSTERY_OFFSET)
private void visitIdentifierExpressionBackReference(final IdentifierExpressionBackReference node) { writeKeyword("identifierBackReference"); leftParenthesis(); writeIdentifier(node.getReferencedGroupName()); rightParenthesis(); }
new ExpressionStatement( new AssignmentExpression( new IdentifierExpressionBackReference("savedException").toExpression(), new NamedNode("caughtException", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new ThrowStatement(new IdentifierExpressionBackReference("caughtException").toExpression()) new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("resource").toExpression().invoke("close") new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("savedException").toExpression().invoke( "addSuppressed", new NamedNode("caughtOnClose", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new IfElseStatement( Expression.MYSTERY_OFFSET, new BinaryOperatorExpression( new IdentifierExpressionBackReference("resource").toExpression(), BinaryOperatorType.INEQUALITY, new NullReferenceExpression(Expression.MYSTERY_OFFSET) new IfElseStatement( Expression.MYSTERY_OFFSET, new BinaryOperatorExpression( new IdentifierExpressionBackReference("savedException").toExpression(), BinaryOperatorType.INEQUALITY, new NullReferenceExpression(Expression.MYSTERY_OFFSET)
private void visitIdentifierExpressionBackReference(final IdentifierExpressionBackReference node) { writeKeyword("identifierBackReference"); leftParenthesis(); writeIdentifier(node.getReferencedGroupName()); rightParenthesis(); }
new ExpressionStatement( new AssignmentExpression( new IdentifierExpressionBackReference("savedException").toExpression(), new NamedNode("caughtException", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new ThrowStatement(new IdentifierExpressionBackReference("caughtException").toExpression()) new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("resource").toExpression().invoke("close") new BlockStatement( new ExpressionStatement( new IdentifierExpressionBackReference("savedException").toExpression().invoke( "addSuppressed", new NamedNode("caughtOnClose", new IdentifierExpression(Expression.MYSTERY_OFFSET, Pattern.ANY_STRING)).toExpression() new IfElseStatement( Expression.MYSTERY_OFFSET, new BinaryOperatorExpression( new IdentifierExpressionBackReference("resource").toExpression(), BinaryOperatorType.INEQUALITY, new NullReferenceExpression(Expression.MYSTERY_OFFSET)
private void visitIdentifierExpressionBackReference(final IdentifierExpressionBackReference node) { writeKeyword("identifierBackReference"); leftParenthesis(); writeIdentifier(node.getReferencedGroupName()); rightParenthesis(); }
.toType() .makeNew() .invoke("initCause", new IdentifierExpressionBackReference("catch").toExpression().cast(throwable)) .makeThrow() ), new AstTypeMatch(noClassDefFoundError) .toType() .makeNew(new IdentifierExpressionBackReference("catch").toExpression().invoke("getMessage")) .makeThrow()
arrayCreation.getDimensions().add(new IdentifierExpressionBackReference("size").toExpression()); arrayCreation.setType(new NamedNode("type", new AnyNode()).toType());
arrayCreation.getDimensions().add(new IdentifierExpressionBackReference("size").toExpression()); arrayCreation.setType(new NamedNode("type", new AnyNode()).toType());
arrayCreation.getDimensions().add(new IdentifierExpressionBackReference("size").toExpression()); arrayCreation.setType(new NamedNode("type", new AnyNode()).toType());