public class PackageImport extends Object implements Named, Comparable<PackageImport>
Constructor and Description |
---|
PackageImport(GeneratedPackage generatedPackage,
String type) |
PackageImport(String fullType) |
PackageImport(String pkg,
String clazz) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PackageImport o)
Special compare that take into account developer practice that list first java imports, then javax imports and finally other ones...
|
boolean |
equals(Object other) |
String |
getName() |
String |
getPackageName() |
int |
hashCode() |
boolean |
isImportNeeded()
no need to import simple types like java.lang.Integer
|
boolean |
samePackageAs(String packageNameWithoutType) |
public PackageImport(GeneratedPackage generatedPackage, String type)
public PackageImport(String fullType)
public boolean samePackageAs(String packageNameWithoutType)
public int compareTo(PackageImport o)
compareTo
in interface Comparable<PackageImport>
public boolean isImportNeeded()
public String getPackageName()
Copyright © 2005-2013 JAXIO S.A.R.L. - All Rights Reserved.