|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jelly.apt.decorations.TypeMirrorDecorator
public class TypeMirrorDecorator
Decorates a TypeMirror when visited.
| Constructor Summary | |
|---|---|
TypeMirrorDecorator()
|
|
| Method Summary | ||
|---|---|---|
static
|
decorate(java.util.Collection<T> typeMirrors)
Decorate a collection fo type mirrors. |
|
static
|
decorate(T typeMirror)
Decorate a type mirror. |
|
com.sun.mirror.type.TypeMirror |
getDecoratedTypeMirror()
Get the decorated type mirror. |
|
protected static TypeMirrorDecorator |
getInstance()
Gets an instance of TypeMirrorDecorator. |
|
void |
visitAnnotationType(com.sun.mirror.type.AnnotationType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitArrayType(com.sun.mirror.type.ArrayType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitClassType(com.sun.mirror.type.ClassType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitDeclaredType(com.sun.mirror.type.DeclaredType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitEnumType(com.sun.mirror.type.EnumType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitInterfaceType(com.sun.mirror.type.InterfaceType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitPrimitiveType(com.sun.mirror.type.PrimitiveType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitReferenceType(com.sun.mirror.type.ReferenceType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitTypeMirror(com.sun.mirror.type.TypeMirror typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitTypeVariable(com.sun.mirror.type.TypeVariable typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitVoidType(com.sun.mirror.type.VoidType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
void |
visitWildcardType(com.sun.mirror.type.WildcardType typeMirror)
Decorates typeMirror and sets it as the decorated type mirror. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TypeMirrorDecorator()
| Method Detail |
|---|
protected static TypeMirrorDecorator getInstance()
TypeMirrorDecorator. If there is a system property named
"net.sf.jelly.apt.decorations.TypeMirrorDecorator" that has a value that is the fully-qualified classname
of a class that extends TypeMirrorDecorator, an attempt will be made to return
an instance of that. If for any reason this attempt fails, the system property will be removed and an instance
of the default decorator will be returned.
TypeMirrorDecorator.public static <T extends com.sun.mirror.type.TypeMirror> T decorate(T typeMirror)
typeMirror - The mirror to decorate.
public static <T extends com.sun.mirror.type.TypeMirror> java.util.Collection<T> decorate(java.util.Collection<T> typeMirrors)
typeMirrors - The type mirrors to decorate.
public com.sun.mirror.type.TypeMirror getDecoratedTypeMirror()
null if none has been set.public void visitTypeMirror(com.sun.mirror.type.TypeMirror typeMirror)
typeMirror and sets it as the decorated type mirror.
visitTypeMirror in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitPrimitiveType(com.sun.mirror.type.PrimitiveType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitPrimitiveType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitVoidType(com.sun.mirror.type.VoidType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitVoidType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitReferenceType(com.sun.mirror.type.ReferenceType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitReferenceType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitDeclaredType(com.sun.mirror.type.DeclaredType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitDeclaredType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitClassType(com.sun.mirror.type.ClassType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitClassType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitEnumType(com.sun.mirror.type.EnumType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitEnumType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitInterfaceType(com.sun.mirror.type.InterfaceType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitInterfaceType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitAnnotationType(com.sun.mirror.type.AnnotationType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitAnnotationType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitArrayType(com.sun.mirror.type.ArrayType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitArrayType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitTypeVariable(com.sun.mirror.type.TypeVariable typeMirror)
typeMirror and sets it as the decorated type mirror.
visitTypeVariable in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.public void visitWildcardType(com.sun.mirror.type.WildcardType typeMirror)
typeMirror and sets it as the decorated type mirror.
visitWildcardType in interface com.sun.mirror.util.TypeVisitortypeMirror - The declaration to decorate.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||