net.sf.jelly.apt.decorations.type
Class DecoratedDeclaredType

java.lang.Object
  extended by net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
      extended by net.sf.jelly.apt.decorations.type.DecoratedReferenceType
          extended by net.sf.jelly.apt.decorations.type.DecoratedDeclaredType
All Implemented Interfaces:
com.sun.mirror.type.DeclaredType, com.sun.mirror.type.ReferenceType, com.sun.mirror.type.TypeMirror
Direct Known Subclasses:
DecoratedClassType, DecoratedInterfaceType

public class DecoratedDeclaredType
extends DecoratedReferenceType
implements com.sun.mirror.type.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 net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
delegate
 
Constructor Summary
DecoratedDeclaredType(com.sun.mirror.type.DeclaredType delegate)
           
 
Method Summary
 void accept(com.sun.mirror.util.TypeVisitor v)
           
 java.util.Collection<com.sun.mirror.type.TypeMirror> getActualTypeArguments()
           
 com.sun.mirror.type.DeclaredType getContainingType()
           
 com.sun.mirror.declaration.TypeDeclaration getDeclaration()
           
 java.util.Collection<com.sun.mirror.type.InterfaceType> getSuperinterfaces()
           
 boolean isDeclared()
           
 boolean isInstanceOf(java.lang.String className)
           
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedReferenceType
isReferenceType
 
Methods inherited from class net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
equals, getDocComment, isAnnotation, isArray, isClass, isCollection, isEnum, isInterface, isPrimitive, isTypeVariable, isVoid, isWildcard, setDocComment, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.sun.mirror.type.TypeMirror
equals, toString
 

Constructor Detail

DecoratedDeclaredType

public DecoratedDeclaredType(com.sun.mirror.type.DeclaredType delegate)
Method Detail

getDeclaration

public com.sun.mirror.declaration.TypeDeclaration getDeclaration()
Specified by:
getDeclaration in interface com.sun.mirror.type.DeclaredType

getContainingType

public com.sun.mirror.type.DeclaredType getContainingType()
Specified by:
getContainingType in interface com.sun.mirror.type.DeclaredType

getActualTypeArguments

public java.util.Collection<com.sun.mirror.type.TypeMirror> getActualTypeArguments()
Specified by:
getActualTypeArguments in interface com.sun.mirror.type.DeclaredType

getSuperinterfaces

public java.util.Collection<com.sun.mirror.type.InterfaceType> getSuperinterfaces()
Specified by:
getSuperinterfaces in interface com.sun.mirror.type.DeclaredType

isDeclared

public boolean isDeclared()
Overrides:
isDeclared in class DecoratedTypeMirror

isInstanceOf

public boolean isInstanceOf(java.lang.String className)
Overrides:
isInstanceOf in class DecoratedTypeMirror

accept

public void accept(com.sun.mirror.util.TypeVisitor v)
Specified by:
accept in interface com.sun.mirror.type.TypeMirror
Overrides:
accept in class DecoratedReferenceType