@Override public boolean visitTry(Try node) { List<JCCatch> catches = toList(JCCatch.class, node.astCatches()); return posSet(node, treeMaker.Try((JCBlock) toTree(node.astBody()), catches, (JCBlock) toTree(node.astFinally()))); }
@Override public boolean visitTry(Try node) { List<JCCatch> catches = toList(JCCatch.class, node.astCatches()); return posSet(node, treeMaker.Try((JCBlock) toTree(node.astBody()), catches, (JCBlock) toTree(node.astFinally()))); }
@Override public boolean visitTry(Try node) { List<JCCatch> catches = toList(JCCatch.class, node.astCatches()); return posSet(node, treeMaker.Try((JCBlock) toTree(node.astBody()), catches, (JCBlock) toTree(node.astFinally()))); }
@Override public void visitTryStatement(TryStatement node) { lombok.ast.Try tryStat = new lombok.ast.Try(); tryStat.astBody((lombok.ast.Block) toTree(node.tryBlock)); tryStat.astFinally((lombok.ast.Block) toTree(node.finallyBlock)); toCatches(node.catchArguments, node.catchBlocks, tryStat.astCatches()); set(node, setPosition(node, tryStat)); }
@Override public void visitTryStatement(TryStatement node) { lombok.ast.Try tryStat = new lombok.ast.Try(); tryStat.astBody((lombok.ast.Block) toTree(node.tryBlock)); tryStat.astFinally((lombok.ast.Block) toTree(node.finallyBlock)); toCatches(node.catchArguments, node.catchBlocks, tryStat.astCatches()); set(node, setPosition(node, tryStat)); }
@Override public void visitTryStatement(TryStatement node) { lombok.ast.Try tryStat = new lombok.ast.Try(); tryStat.astBody((lombok.ast.Block) toTree(node.tryBlock)); tryStat.astFinally((lombok.ast.Block) toTree(node.finallyBlock)); toCatches(node.catchArguments, node.catchBlocks, tryStat.astCatches()); set(node, setPosition(node, tryStat)); }
@Override public boolean visitTry(lombok.ast.Try node) { TryStatement tryStatement = new TryStatement(); tryStatement.sourceStart = start(node); tryStatement.sourceEnd = end(node); tryStatement.tryBlock = (Block) toTree(node.astBody()); int catchSize = node.astCatches().size(); if (catchSize > 0) { tryStatement.catchArguments = new Argument[catchSize]; tryStatement.catchBlocks = new Block[catchSize]; int i = 0; for (lombok.ast.Catch c : node.astCatches()) { tryStatement.catchArguments[i] = (Argument)toTree(c.astExceptionDeclaration()); tryStatement.catchBlocks[i] = (Block) toTree(c.astBody()); i++; } } tryStatement.finallyBlock = (Block) toTree(node.astFinally()); return set(node, tryStatement); }
@Override public boolean visitTry(lombok.ast.Try node) { TryStatement tryStatement = new TryStatement(); tryStatement.sourceStart = start(node); tryStatement.sourceEnd = end(node); tryStatement.tryBlock = (Block) toTree(node.astBody()); int catchSize = node.astCatches().size(); if (catchSize > 0) { tryStatement.catchArguments = new Argument[catchSize]; tryStatement.catchBlocks = new Block[catchSize]; int i = 0; for (lombok.ast.Catch c : node.astCatches()) { tryStatement.catchArguments[i] = (Argument)toTree(c.astExceptionDeclaration()); tryStatement.catchBlocks[i] = (Block) toTree(c.astBody()); i++; } } tryStatement.finallyBlock = (Block) toTree(node.astFinally()); return set(node, tryStatement); }
@Override public boolean visitTry(lombok.ast.Try node) { TryStatement tryStatement = new TryStatement(); tryStatement.sourceStart = start(node); tryStatement.sourceEnd = end(node); tryStatement.tryBlock = (Block) toTree(node.astBody()); int catchSize = node.astCatches().size(); if (catchSize > 0) { tryStatement.catchArguments = new Argument[catchSize]; tryStatement.catchBlocks = new Block[catchSize]; int i = 0; for (lombok.ast.Catch c : node.astCatches()) { tryStatement.catchArguments[i] = (Argument)toTree(c.astExceptionDeclaration()); tryStatement.catchBlocks[i] = (Block) toTree(c.astBody()); i++; } } tryStatement.finallyBlock = (Block) toTree(node.astFinally()); return set(node, tryStatement); }