@Override public P migrateAllFrom(StrictListAccessor<? extends T, ?> otherList) { while (!otherList.isEmpty()) { AbstractNode n = (AbstractNode) otherList.first(); otherList.remove(n); raw.addToEnd(n); } return returnAsParent; }
@Override public P migrateAllFrom(StrictListAccessor<? extends T, ?> otherList) { while (!otherList.isEmpty()) { AbstractNode n = (AbstractNode) otherList.first(); otherList.remove(n); raw.addToEnd(n); } return returnAsParent; }
@Override public P migrateAllFrom(StrictListAccessor<? extends T, ?> otherList) { while (!otherList.isEmpty()) { AbstractNode n = (AbstractNode) otherList.first(); otherList.remove(n); raw.addToEnd(n); } return returnAsParent; }
@Override public void visitImport(JCImport node) { ImportDeclaration imp = new ImportDeclaration(); fillWithIdentifiers(node.getQualifiedIdentifier(), imp.astParts()); Identifier last = imp.astParts().last(); if (last != null && "*".equals(last.astValue())) { imp.astParts().remove(last); imp.astStarImport(true); setConversionPositionInfo(imp, ".*", last.getPosition()); } imp.astStaticImport(node.isStatic()); set(node, imp); }
@Override public void visitImport(JCImport node) { ImportDeclaration imp = new ImportDeclaration(); fillWithIdentifiers(node.getQualifiedIdentifier(), imp.astParts()); Identifier last = imp.astParts().last(); if (last != null && "*".equals(last.astValue())) { imp.astParts().remove(last); imp.astStarImport(true); setConversionPositionInfo(imp, ".*", last.getPosition()); } imp.astStaticImport(node.isStatic()); set(node, imp); }
@Override public void visitImport(JCImport node) { ImportDeclaration imp = new ImportDeclaration(); fillWithIdentifiers(node.getQualifiedIdentifier(), imp.astParts()); Identifier last = imp.astParts().last(); if (last != null && "*".equals(last.astValue())) { imp.astParts().remove(last); imp.astStarImport(true); setConversionPositionInfo(imp, ".*", last.getPosition()); } imp.astStaticImport(node.isStatic()); set(node, imp); }