| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | canonicalName
The full class name like "java.util.Map.Entry". |
| pack-priv final ClassName | enclosingClassName
The enclosing class, or null if this is not enclosed in another class. |
| private static final String | NO_PACKAGE
The name representing the default Java package. |
| public static final ClassName | |
| pack-priv final String | packageName
The package name of this class, or "" if this is in the default package. |
| pack-priv final String | simpleName
This class name, like "Entry" for java.util.Map.Entry. |
| private List |
| Access | Constructor and Description |
|---|---|
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public ClassName | annotated(List<AnnotationSpec> annotations)
Overrides org.
|
| public static ClassName | |
| public String | |
| public int | compareTo(ClassName
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| pack-priv CodeWriter | |
| private List | |
| public ClassName | |
| public static ClassName | |
| public static ClassName | |
| public static ClassName | |
| public boolean | |
| public ClassName | nestedClass(String name)
Returns a new |
| public String | |
| public ClassName | |
| public String | |
| public String | |
| public List | |
| public ClassName | |
| public ClassName |
| canonicalName | back to summary |
|---|---|
| pack-priv final String canonicalName The full class name like "java.util.Map.Entry". | |
| enclosingClassName | back to summary |
|---|---|
| pack-priv final ClassName enclosingClassName The enclosing class, or null if this is not enclosed in another class. | |
| NO_PACKAGE | back to summary |
|---|---|
| private static final String NO_PACKAGE The name representing the default Java package. | |
| OBJECT | back to summary |
|---|---|
| public static final ClassName OBJECT | |
| packageName | back to summary |
|---|---|
| pack-priv final String packageName The package name of this class, or "" if this is in the default package. | |
| simpleName | back to summary |
|---|---|
| pack-priv final String simpleName This class name, like "Entry" for java.util.Map.Entry. | |
| simpleNames | back to summary |
|---|---|
| private List<String> simpleNames | |
| ClassName | back to summary |
|---|---|
| private ClassName(String packageName, ClassName enclosingClassName, String simpleName) | |
| ClassName | back to summary |
|---|---|
| private ClassName(String packageName, ClassName enclosingClassName, String simpleName, List<AnnotationSpec> annotations) | |
| annotated | back to summary |
|---|---|
| public ClassName annotated(List<AnnotationSpec> annotations) Overrides org.
| |
| bestGuess | back to summary |
|---|---|
| public static ClassName bestGuess(String classNameString) Returns a new | |
| canonicalName | back to summary |
|---|---|
| public String canonicalName() Returns the full class name of this class.
Like | |
| compareTo | back to summary |
|---|---|
| public int compareTo(ClassName o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |
| emit | back to summary |
|---|---|
| pack-priv CodeWriter emit(CodeWriter out) throws IOException Overrides org.
| |
| enclosingClasses | back to summary |
|---|---|
| private List Returns all enclosing classes in this, outermost first. | |
| enclosingClassName | back to summary |
|---|---|
| public ClassName enclosingClassName() Returns the enclosing class, like | |
| get | back to summary |
|---|---|
| public static ClassName get(Class<?> clazz) | |
| get | back to summary |
|---|---|
| public static ClassName get(String packageName, String simpleName, String... simpleNames) Returns a class name created from the given parts. For example, calling this with package name
| |
| get | back to summary |
|---|---|
| public static ClassName get(TypeElement element) Returns the class name for | |
| isAnnotated | back to summary |
|---|---|
| public boolean isAnnotated() Overrides org.
| |
| nestedClass | back to summary |
|---|---|
| public ClassName nestedClass(String name) Returns a new | |
| packageName | back to summary |
|---|---|
| public String packageName() Returns the package name, like | |
| peerClass | back to summary |
|---|---|
| public ClassName peerClass(String name) Returns a class that shares the same enclosing package or class. If this class is enclosed by
another class, this is equivalent to | |
| reflectionName | back to summary |
|---|---|
| public String reflectionName() Return the binary name of a class. | |
| simpleName | back to summary |
|---|---|
| public String simpleName() Returns the simple name of this class, like | |
| simpleNames | back to summary |
|---|---|
| public List | |
| topLevelClassName | back to summary |
|---|---|
| public ClassName topLevelClassName() Returns the top class in this nesting group. Equivalent to chained calls to | |
| withoutAnnotations | back to summary |
|---|---|
| public ClassName withoutAnnotations() Overrides org.
| |