net.sf.jelly.apt.decorations.type
Class DecoratedTypeMirror
java.lang.Object
net.sf.jelly.apt.decorations.type.DecoratedTypeMirror
- All Implemented Interfaces:
- com.sun.mirror.type.TypeMirror
- Direct Known Subclasses:
- DecoratedPrimitiveType, DecoratedReferenceType, DecoratedVoidType, DecoratedWildcardType
public class DecoratedTypeMirror
- extends java.lang.Object
- implements com.sun.mirror.type.TypeMirror
A decorated type mirror provides:
- boolean properties to determine the type of mirror
- an
isInstanceOf method that determines whether this mirrors a class that is
an instanceof the class denoted by the given fully-qualified name.
- a docComment property that outputs the doc comment, if specified. E.g. for a return type
or a thrown type.
- Author:
- Ryan Heaton
|
Field Summary |
protected com.sun.mirror.type.TypeMirror |
delegate
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
delegate
protected final com.sun.mirror.type.TypeMirror delegate
DecoratedTypeMirror
public DecoratedTypeMirror(com.sun.mirror.type.TypeMirror delegate)
accept
public void accept(com.sun.mirror.util.TypeVisitor v)
- Specified by:
accept in interface com.sun.mirror.type.TypeMirror
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals in interface com.sun.mirror.type.TypeMirror- Overrides:
equals in class java.lang.Object
toString
public java.lang.String toString()
- Specified by:
toString in interface com.sun.mirror.type.TypeMirror- Overrides:
toString in class java.lang.Object
isInstanceOf
public boolean isInstanceOf(java.lang.String className)
isAnnotation
public boolean isAnnotation()
isArray
public boolean isArray()
isCollection
public boolean isCollection()
isClass
public boolean isClass()
isDeclared
public boolean isDeclared()
isEnum
public boolean isEnum()
isInterface
public boolean isInterface()
isPrimitive
public boolean isPrimitive()
isReferenceType
public boolean isReferenceType()
isTypeVariable
public boolean isTypeVariable()
isVoid
public boolean isVoid()
isWildcard
public boolean isWildcard()
getDocComment
public java.lang.String getDocComment()
setDocComment
public void setDocComment(java.lang.String docComment)