net.sf.jelly.apt.decorations.declaration
Class DecoratedDeclaration

java.lang.Object
  extended by net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
All Implemented Interfaces:
com.sun.mirror.declaration.Declaration
Direct Known Subclasses:
DecoratedMemberDeclaration, DecoratedPackageDeclaration, DecoratedParameterDeclaration, DecoratedTypeParameterDeclaration

public class DecoratedDeclaration
extends java.lang.Object
implements com.sun.mirror.declaration.Declaration

A decorated declaration provides:

Author:
Ryan Heaton

Field Summary
protected  com.sun.mirror.declaration.Declaration delegate
           
protected  JavaDoc javaDoc
           
 
Constructor Summary
DecoratedDeclaration(com.sun.mirror.declaration.Declaration delegate)
           
 
Method Summary
 void accept(com.sun.mirror.util.DeclarationVisitor v)
           
 boolean equals(java.lang.Object obj)
           
<A extends java.lang.annotation.Annotation>
A
getAnnotation(java.lang.Class<A> annotationType)
           
 java.util.Collection<com.sun.mirror.declaration.AnnotationMirror> getAnnotationMirrors()
           
 java.util.Map<java.lang.String,com.sun.mirror.declaration.AnnotationMirror> getAnnotations()
          A map of annotations for this declaration.
 com.sun.mirror.declaration.Declaration getDelegate()
           
 java.lang.String getDocComment()
           
 JavaDoc getJavaDoc()
          The javadoc for this declaration.
 java.util.Collection<com.sun.mirror.declaration.Modifier> getModifiers()
           
 com.sun.mirror.util.SourcePosition getPosition()
           
 java.lang.String getSimpleName()
           
 boolean isAbstract()
          Whether the declaration is abstract.
 boolean isFinal()
          Whether the declaration is final.
 boolean isNative()
          Whether the declaration is native.
 boolean isPrivate()
          Whether the declaration is private.
 boolean isProtected()
          Whether the declaration is protected.
 boolean isPublic()
          Whether the declaration is public.
 boolean isStatic()
          Whether the declaration is static.
 boolean isStrictfp()
          Whether the declaration is strictfp.
 boolean isSynchronized()
          Whether the declaration is synchronized.
 boolean isTransient()
          Whether the declaration is transient.
 boolean isVolatile()
          Whether the declaration is volatile.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

delegate

protected final com.sun.mirror.declaration.Declaration delegate

javaDoc

protected final JavaDoc javaDoc
Constructor Detail

DecoratedDeclaration

public DecoratedDeclaration(com.sun.mirror.declaration.Declaration delegate)
Method Detail

isPublic

public boolean isPublic()
Whether the declaration is public.

Returns:
Whether the declaration is public.

isProtected

public boolean isProtected()
Whether the declaration is protected.

Returns:
Whether the declaration is protected.

isPrivate

public boolean isPrivate()
Whether the declaration is private.

Returns:
Whether the declaration is private.

isAbstract

public boolean isAbstract()
Whether the declaration is abstract.

Returns:
Whether the declaration is abstract.

isStatic

public boolean isStatic()
Whether the declaration is static.

Returns:
Whether the declaration is static.

isFinal

public boolean isFinal()
Whether the declaration is final.

Returns:
Whether the declaration is final.

isTransient

public boolean isTransient()
Whether the declaration is transient.

Returns:
Whether the declaration is transient.

isVolatile

public boolean isVolatile()
Whether the declaration is volatile.

Returns:
Whether the declaration is volatile.

isSynchronized

public boolean isSynchronized()
Whether the declaration is synchronized.

Returns:
Whether the declaration is synchronized.

isNative

public boolean isNative()
Whether the declaration is native.

Returns:
Whether the declaration is native.

isStrictfp

public boolean isStrictfp()
Whether the declaration is strictfp.

Returns:
Whether the declaration is strictfp.

getJavaDoc

public JavaDoc getJavaDoc()
The javadoc for this declaration.

Returns:
The javadoc for this declaration.

getAnnotations

public java.util.Map<java.lang.String,com.sun.mirror.declaration.AnnotationMirror> getAnnotations()
A map of annotations for this declaration.

Returns:
A map of annotations for this declaration.

getDocComment

public java.lang.String getDocComment()
Specified by:
getDocComment in interface com.sun.mirror.declaration.Declaration

getAnnotationMirrors

public java.util.Collection<com.sun.mirror.declaration.AnnotationMirror> getAnnotationMirrors()
Specified by:
getAnnotationMirrors in interface com.sun.mirror.declaration.Declaration

getAnnotation

public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
Specified by:
getAnnotation in interface com.sun.mirror.declaration.Declaration

getModifiers

public java.util.Collection<com.sun.mirror.declaration.Modifier> getModifiers()
Specified by:
getModifiers in interface com.sun.mirror.declaration.Declaration

getSimpleName

public java.lang.String getSimpleName()
Specified by:
getSimpleName in interface com.sun.mirror.declaration.Declaration

getPosition

public com.sun.mirror.util.SourcePosition getPosition()
Specified by:
getPosition in interface com.sun.mirror.declaration.Declaration

accept

public void accept(com.sun.mirror.util.DeclarationVisitor v)
Specified by:
accept in interface com.sun.mirror.declaration.Declaration

getDelegate

public com.sun.mirror.declaration.Declaration getDelegate()

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in interface com.sun.mirror.declaration.Declaration
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object