Package org.jboss.hal.processor
Class TypeSimplifier
- java.lang.Object
-
- org.jboss.hal.processor.TypeSimplifier
-
public final class TypeSimplifier extends Object
Takes a set of types and a package and determines which of those types can be imported, and how to spell any of the types in the set given those imports.- Author:
- emcmanus@google.com (Éamonn McManus)
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringclassNameOf(TypeElement type)Returns the name of the given type, including any enclosing types but not the package.static StringpackageNameOf(TypeElement type)Returns the name of the package that the given type is in.static StringsimpleNameOf(String s)static StringsimpleTypeName(TypeMirror type)
-
-
-
Method Detail
-
classNameOf
public static String classNameOf(TypeElement type)
Returns the name of the given type, including any enclosing types but not the package.
-
packageNameOf
public static String packageNameOf(TypeElement type)
Returns the name of the package that the given type is in. If the type is in the default (unnamed) package then the name is the empty string.
-
simpleTypeName
public static String simpleTypeName(TypeMirror type)
-
-