public class CodeTypeElement extends CodeElement<Element> implements TypeElement
| Constructor and Description |
|---|
CodeTypeElement(Set<Modifier> modifiers,
ElementKind kind,
PackageElement packageElement,
String simpleName) |
add, addAll, addAnnotationMirror, addOptional, getAnnotation, getAnnotationMirrors, getAnnotations, getAnnotationsByType, getEnclosedElements, getEnclosingClass, getGeneratorAnnotationMirror, getGeneratorElement, getModifiers, remove, setGeneratorAnnotationMirror, setGeneratorElementgetEnclosedElementsgetAnnotation, getAnnotationMirrors, getModifiersgetAnnotationsByTypepublic CodeTypeElement(Set<Modifier> modifiers, ElementKind kind, PackageElement packageElement, String simpleName)
public CodeTreeBuilder createDocBuilder()
public CodeTree getDocTree()
public void setDocTree(CodeTree docTree)
public void setSimpleName(Name simpleName)
public TypeMirror asType()
public 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 String toString()
toString in class CodeElement<Element>public <R,P> R accept(ElementVisitor<R,P> v, P p)
public static CodeTypeElement cloneShallow(TypeElement typeElement)