Class DecoratedDeclaredType
- java.lang.Object
-
- com.webcohesion.enunciate.javac.decorations.type.DecoratedTypeMirror<T>
-
- com.webcohesion.enunciate.javac.decorations.type.DecoratedReferenceType<DeclaredType>
-
- com.webcohesion.enunciate.javac.decorations.type.DecoratedDeclaredType
-
- All Implemented Interfaces:
AnnotatedConstruct,DeclaredType,ReferenceType,TypeMirror
- Direct Known Subclasses:
DecoratedErrorType
public class DecoratedDeclaredType extends DecoratedReferenceType<DeclaredType> implements DeclaredType
A decorated declared type provides a property for getting its actual type parameters as a list (so they can be accessed with the [] operator in expression language).- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class com.webcohesion.enunciate.javac.decorations.type.DecoratedTypeMirror
delegate, env
-
-
Constructor Summary
Constructors Constructor Description DecoratedDeclaredType(DeclaredType delegate, DecoratedProcessingEnvironment env)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <R,P>
Raccept(TypeVisitor<R,P> v, P p)ElementasElement()TypeMirrorgetEnclosingType()StringgetQualifiedName()List<? extends TypeMirror>getTypeArguments()booleanisDeclared()booleanisInstanceOf(Class<?> clazz)booleanisInstanceOf(String typeName)-
Methods inherited from class com.webcohesion.enunciate.javac.decorations.type.DecoratedReferenceType
isReferenceType
-
Methods inherited from class com.webcohesion.enunciate.javac.decorations.type.DecoratedTypeMirror
equals, getAnnotation, getAnnotationMirrors, getAnnotationsByType, getDeferredDocComment, getDelegate, getDocComment, getDocValue, getDocValue, getKind, isAnnotation, isArray, isClass, isCollection, isEnum, isInstanceOf, isInstanceOf, isInterface, isList, isNull, isPrimitive, isStream, isTypeVariable, isVoid, isWildcard, setDeferredDocComment, 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
getAnnotation, getAnnotationMirrors, getAnnotationsByType
-
Methods inherited from interface javax.lang.model.type.TypeMirror
equals, getKind, hashCode, toString
-
-
-
-
Constructor Detail
-
DecoratedDeclaredType
public DecoratedDeclaredType(DeclaredType delegate, DecoratedProcessingEnvironment env)
-
-
Method Detail
-
asElement
public Element asElement()
- Specified by:
asElementin interfaceDeclaredType
-
getEnclosingType
public TypeMirror getEnclosingType()
- Specified by:
getEnclosingTypein interfaceDeclaredType
-
getTypeArguments
public List<? extends TypeMirror> getTypeArguments()
- Specified by:
getTypeArgumentsin interfaceDeclaredType
-
isDeclared
public boolean isDeclared()
- Overrides:
isDeclaredin classDecoratedTypeMirror<DeclaredType>
-
getQualifiedName
public String getQualifiedName()
-
isInstanceOf
public boolean isInstanceOf(Class<?> clazz)
- Overrides:
isInstanceOfin classDecoratedReferenceType<DeclaredType>
-
isInstanceOf
public boolean isInstanceOf(String typeName)
- Overrides:
isInstanceOfin classDecoratedReferenceType<DeclaredType>
-
accept
public <R,P> R accept(TypeVisitor<R,P> v, P p)
- Specified by:
acceptin interfaceTypeMirror- Overrides:
acceptin classDecoratedTypeMirror<DeclaredType>
-
-