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() |
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<? extends TypeParameterElement> |
getTypeParameters() |
int |
hashCode() |
boolean |
isTopLevelClass() |
void |
setEnclosingElement(Element element) |
void |
setSuperClass(TypeMirror superType) |
String |
toString() |
add, addAnnotationMirror, addOptional, getAnnotation, getAnnotationMirrors, getAnnotations, getAnnotationsByType, getEnclosedElements, getEnclosingClass, getGeneratorAnnotationMirror, getGeneratorElement, getModifiers, remove, setGeneratorAnnotationMirror, setGeneratorElementclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetEnclosedElementsgetAnnotation, getAnnotationMirrors, getModifiersgetAnnotationsByTypepublic CodeTypeElement(Set<Modifier> modifiers, ElementKind kind, PackageElement packageElement, String simpleName)
public TypeMirror asType()
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<? extends 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()
public boolean equals(Object obj)
public List<VariableElement> getFields()
public List<ExecutableElement> getMethods()
public List<TypeElement> getInnerClasses()
public String toString()
toString in class CodeElement<Element>public <R,P> R accept(ElementVisitor<R,P> v, P p)