public class CodeTypeElement extends CodeElement<Element> implements TypeElement
| Constructor and Description |
|---|
CodeTypeElement(Set<Modifier> modifiers,
ElementKind kind,
PackageElement packageElement,
String simpleName) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
TypeMirror |
asType() |
static CodeTypeElement |
cloneShallow(TypeElement typeElement) |
boolean |
containsField(String name) |
boolean |
equals(Object obj) |
Element |
getEnclosingElement() |
List<VariableElement> |
getFields() |
List<TypeMirror> |
getImplements() |
List<? extends CodeImport> |
getImports() |
List<TypeElement> |
getInnerClasses() |
List<TypeMirror> |
getInterfaces() |
ElementKind |
getKind() |
List<ExecutableElement> |
getMethods() |
NestingKind |
getNestingKind() |
Name |
getPackageName() |
Name |
getQualifiedName() |
Name |
getSimpleName() |
TypeMirror |
getSuperclass() |
List<TypeParameterElement> |
getTypeParameters() |
int |
hashCode() |
boolean |
isTopLevelClass() |
void |
setEnclosingElement(Element element) |
void |
setKind(ElementKind kind) |
void |
setSimpleName(Name simpleName) |
void |
setSuperClass(TypeMirror superType) |
add, addAll, addAnnotationMirror, addOptional, createDocBuilder, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDocTree, getEnclosedElements, getEnclosingClass, getGeneratorAnnotationMirror, getGeneratorElement, getModifiers, setDocTree, setGeneratorAnnotationMirror, setGeneratorElement, toStringgetEnclosedElements, getPermittedSubclasses, getRecordComponentsgetAnnotation, getAnnotationMirrors, getAnnotationsByType, getModifierspublic CodeTypeElement(Set<Modifier> modifiers, ElementKind kind, PackageElement packageElement, String simpleName)
public void setSimpleName(Name simpleName)
public TypeMirror asType()
asType in interface ElementasType in interface TypeElementpublic void setKind(ElementKind kind)
public ElementKind getKind()
public boolean containsField(String name)
public NestingKind getNestingKind()
getNestingKind in interface TypeElementpublic Element getEnclosingElement()
getEnclosingElement in interface ElementgetEnclosingElement in interface TypeElementgetEnclosingElement in class CodeElement<Element>public TypeMirror getSuperclass()
getSuperclass in interface TypeElementpublic List<TypeMirror> getInterfaces()
getInterfaces in interface TypeElementpublic List<TypeParameterElement> getTypeParameters()
getTypeParameters in interface ParameterizablegetTypeParameters in interface TypeElementpublic boolean isTopLevelClass()
public void setEnclosingElement(Element element)
setEnclosingElement in class CodeElement<Element>public Name getPackageName()
public Name getQualifiedName()
getQualifiedName in interface QualifiedNameablegetQualifiedName in interface TypeElementpublic Name getSimpleName()
getSimpleName in interface ElementgetSimpleName in interface TypeElementpublic void setSuperClass(TypeMirror superType)
public List<? extends CodeImport> getImports()
public List<TypeMirror> getImplements()
public int hashCode()
hashCode in interface ElementhashCode in class CodeElement<Element>public boolean equals(Object obj)
equals in interface Elementequals in class CodeElement<Element>public List<VariableElement> getFields()
public List<ExecutableElement> getMethods()
public List<TypeElement> getInnerClasses()
public <R,P> R accept(ElementVisitor<R,P> v, P p)
public static CodeTypeElement cloneShallow(TypeElement typeElement)