Class DecoratedTypeElement
- java.lang.Object
-
- com.webcohesion.enunciate.javac.decorations.element.DecoratedElement<TypeElement>
-
- com.webcohesion.enunciate.javac.decorations.element.DecoratedTypeElement
-
- All Implemented Interfaces:
AnnotatedConstruct,Element,Parameterizable,QualifiedNameable,TypeElement
public class DecoratedTypeElement extends DecoratedElement<TypeElement> implements TypeElement
A decorated type declaration provides:- boolean properties for the "type" of type declaration.
- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class com.webcohesion.enunciate.javac.decorations.element.DecoratedElement
delegate, env
-
-
Constructor Summary
Constructors Constructor Description DecoratedTypeElement(TypeElement delegate, DecoratedProcessingEnvironment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(ElementVisitor<R,P> v, P p)List<VariableElement>enumValues()<A extends Annotation>
AgetAnnotation(Class<A> annotationType)List<ExecutableElement>getConstructors()List<? extends VariableElement>getFields()List<? extends TypeMirror>getInterfaces()List<ExecutableElement>getMethods()NestingKindgetNestingKind()PackageElementgetPackage()List<PropertyElement>getProperties()List<PropertyElement>getProperties(PropertySpec spec)NamegetQualifiedName()TypeMirrorgetSuperclass()List<? extends TypeParameterElement>getTypeParameters()booleanisAnnotatedType()booleanisClass()booleanisEnum()booleanisInterface()protected List<VariableElement>loadEnumConstants()protected List<PropertyElement>loadProperties(PropertySpec spec)-
Methods inherited from class com.webcohesion.enunciate.javac.decorations.element.DecoratedElement
asType, equals, getAnnotationMirrors, getAnnotations, getAnnotationsByType, getDelegate, getDocComment, getDocValue, getDocValue, getEnclosedElements, getEnclosingElement, getJavaDoc, getJavaDoc, getJavaDoc, getKind, getModifiers, getSimpleName, getSimpleNameString, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.lang.model.AnnotatedConstruct
getAnnotationsByType
-
Methods inherited from interface javax.lang.model.element.Element
asType, equals, getAnnotationMirrors, getKind, getModifiers, hashCode
-
Methods inherited from interface javax.lang.model.element.TypeElement
getEnclosedElements, getEnclosingElement, getSimpleName
-
-
-
-
Constructor Detail
-
DecoratedTypeElement
public DecoratedTypeElement(TypeElement delegate, DecoratedProcessingEnvironment env)
-
-
Method Detail
-
getPackage
public PackageElement getPackage()
-
getTypeParameters
public List<? extends TypeParameterElement> getTypeParameters()
- Specified by:
getTypeParametersin interfaceParameterizable- Specified by:
getTypeParametersin interfaceTypeElement
-
getNestingKind
public NestingKind getNestingKind()
- Specified by:
getNestingKindin interfaceTypeElement
-
getQualifiedName
public Name getQualifiedName()
- Specified by:
getQualifiedNamein interfaceQualifiedNameable- Specified by:
getQualifiedNamein interfaceTypeElement
-
getSuperclass
public TypeMirror getSuperclass()
- Specified by:
getSuperclassin interfaceTypeElement
-
getInterfaces
public List<? extends TypeMirror> getInterfaces()
- Specified by:
getInterfacesin interfaceTypeElement
-
getMethods
public List<ExecutableElement> getMethods()
-
getFields
public List<? extends VariableElement> getFields()
-
getConstructors
public List<ExecutableElement> getConstructors()
-
getProperties
public List<PropertyElement> getProperties()
-
getProperties
public List<PropertyElement> getProperties(PropertySpec spec)
-
enumValues
public List<VariableElement> enumValues()
-
getAnnotation
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
- Specified by:
getAnnotationin interfaceAnnotatedConstruct- Specified by:
getAnnotationin interfaceElement- Overrides:
getAnnotationin classDecoratedElement<TypeElement>
-
loadProperties
protected List<PropertyElement> loadProperties(PropertySpec spec)
-
loadEnumConstants
protected List<VariableElement> loadEnumConstants()
-
isClass
public boolean isClass()
-
isInterface
public boolean isInterface()
-
isEnum
public boolean isEnum()
-
isAnnotatedType
public boolean isAnnotatedType()
-
accept
public <R,P> R accept(ElementVisitor<R,P> v, P p)
- Specified by:
acceptin interfaceElement- Overrides:
acceptin classDecoratedElement<TypeElement>
-
-