org.eclipse.jdt.internal.core.dom.rewrite.imports.NewImportEntry Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright (c) 2015 Google Inc and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* John Glassmyer - import group sorting is broken - https://bugs.eclipse.org/430303
*******************************************************************************/
package org.eclipse.jdt.internal.core.dom.rewrite.imports;
/**
* Represents an import declaration that did not originally occur in the compilation unit.
*/
class NewImportEntry extends ImportEntry {
NewImportEntry(ImportName importName) {
super(importName);
}
@Override
public String toString() {
return String.format("NewImportEntry(%s)", this.importName); //$NON-NLS-1$
}
@Override
boolean isOriginal() {
return false;
}
@Override
OriginalImportEntry asOriginalImportEntry() {
throw new UnsupportedOperationException();
}
}