public abstract class ClassTypeImpl
extends java.lang.Object
implements javax.lang.model.type.DeclaredType
DeclaredType for unit tests.| Modifier and Type | Class and Description |
|---|---|
static class |
ClassTypeImpl.Builder |
class |
ClassTypeImpl.ClassElementImpl
Fake implementation of
TypeElement for unit tests. |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(javax.lang.model.type.TypeVisitor<R,P> v,
P p) |
ClassTypeImpl.ClassElementImpl |
asElement() |
boolean |
equals(java.lang.Object o) |
javax.lang.model.type.TypeMirror |
getEnclosingType() |
javax.lang.model.type.TypeKind |
getKind() |
java.util.List<? extends javax.lang.model.type.TypeMirror> |
getTypeArguments() |
int |
hashCode() |
static ClassTypeImpl.Builder |
iface(java.lang.String simpleName)
Returns a
ClassTypeImpl.Builder initially configured to create a DeclaredType for a
top-level interface called simpleName, in package org.example, with no
super-interfaces. |
static ClassTypeImpl |
newInnerClass(javax.lang.model.type.DeclaredType enclosingType,
java.lang.String simpleName) |
static ClassTypeImpl |
newNestedClass(javax.lang.model.element.TypeElement enclosingType,
java.lang.String simpleName) |
static ClassTypeImpl |
newTopLevelClass(java.lang.String qualifiedName) |
java.lang.String |
toString() |
static ClassTypeImpl.Builder |
type(java.lang.String simpleName)
Returns a
ClassTypeImpl.Builder initially configured to create a DeclaredType for a
top-level class called simpleName, in package org.example, with no
supertype or interfaces. |
public static ClassTypeImpl.Builder type(java.lang.String simpleName)
ClassTypeImpl.Builder initially configured to create a DeclaredType for a
top-level class called simpleName, in package org.example, with no
supertype or interfaces.public static ClassTypeImpl.Builder iface(java.lang.String simpleName)
ClassTypeImpl.Builder initially configured to create a DeclaredType for a
top-level interface called simpleName, in package org.example, with no
super-interfaces.public static ClassTypeImpl newTopLevelClass(java.lang.String qualifiedName)
public static ClassTypeImpl newNestedClass(javax.lang.model.element.TypeElement enclosingType, java.lang.String simpleName)
public static ClassTypeImpl newInnerClass(javax.lang.model.type.DeclaredType enclosingType, java.lang.String simpleName)
public javax.lang.model.type.TypeKind getKind()
getKind in interface javax.lang.model.type.TypeMirrorpublic <R,P> R accept(javax.lang.model.type.TypeVisitor<R,P> v,
P p)
accept in interface javax.lang.model.type.TypeMirrorpublic ClassTypeImpl.ClassElementImpl asElement()
asElement in interface javax.lang.model.type.DeclaredTypepublic javax.lang.model.type.TypeMirror getEnclosingType()
getEnclosingType in interface javax.lang.model.type.DeclaredTypepublic java.util.List<? extends javax.lang.model.type.TypeMirror> getTypeArguments()
getTypeArguments in interface javax.lang.model.type.DeclaredTypepublic java.lang.String toString()
toString in interface javax.lang.model.type.TypeMirrortoString in class java.lang.Objectpublic int hashCode()
hashCode in interface javax.lang.model.type.TypeMirrorhashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in interface javax.lang.model.type.TypeMirrorequals in class java.lang.Object