|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jelly.apt.decorations.declaration.DecoratedDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedExecutableDeclaration
net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration
net.sf.jelly.apt.decorations.declaration.PropertyDeclaration
public class PropertyDeclaration
A property, representing the getter/setter pair. In all cases, the description of the property matches the description of the getter, but the annotations are the union of the getter and the setter, with the intersection preferring the getter.
Field Summary |
---|
Fields inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
---|
delegate, javaDoc |
Constructor Summary | |
---|---|
PropertyDeclaration(DecoratedMethodDeclaration getter,
DecoratedMethodDeclaration setter)
A property declaration. |
Method Summary | ||
---|---|---|
|
getAnnotation(java.lang.Class<A> annotationType)
Gets the annotation on the getter. |
|
java.util.Collection<com.sun.mirror.declaration.AnnotationMirror> |
getAnnotationMirrors()
Gets the collection of annotations on the setter and the getter. |
|
java.util.Map<java.lang.String,com.sun.mirror.declaration.AnnotationMirror> |
getAnnotations()
Gets the annotations on the setter and the getter. |
|
DecoratedMethodDeclaration |
getGetter()
The getter. |
|
java.lang.String |
getPropertyName()
Make sure the property name is calculated correctly. |
|
com.sun.mirror.type.TypeMirror |
getPropertyType()
The type of this property. |
|
DecoratedMethodDeclaration |
getSetter()
The setter, or null if this property is a read-only property. |
|
java.lang.String |
getSimpleName()
The simple name of the property is the property name. |
|
boolean |
isReadOnly()
Whether this property is read-only. |
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMethodDeclaration |
---|
accept, getReturnType, isGetter, isSetter |
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedExecutableDeclaration |
---|
getFormalTypeParameters, getParameters, getThrownTypes, isVarArgs |
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedMemberDeclaration |
---|
getDeclaringType |
Methods inherited from class net.sf.jelly.apt.decorations.declaration.DecoratedDeclaration |
---|
equals, getDelegate, getDocComment, getJavaDoc, getModifiers, getPosition, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.sun.mirror.declaration.ExecutableDeclaration |
---|
getFormalTypeParameters, getParameters, getThrownTypes, isVarArgs |
Methods inherited from interface com.sun.mirror.declaration.MemberDeclaration |
---|
getDeclaringType |
Methods inherited from interface com.sun.mirror.declaration.Declaration |
---|
equals, getDocComment, getModifiers, getPosition |
Constructor Detail |
---|
public PropertyDeclaration(DecoratedMethodDeclaration getter, DecoratedMethodDeclaration setter)
getter
- The getter.setter
- The setter.
java.lang.IllegalStateException
- If the getter and setter don't pair up.Method Detail |
---|
public com.sun.mirror.type.TypeMirror getPropertyType()
public java.lang.String getSimpleName()
getSimpleName
in interface com.sun.mirror.declaration.Declaration
getSimpleName
in class DecoratedDeclaration
public java.lang.String getPropertyName()
getPropertyName
in class DecoratedMethodDeclaration
public DecoratedMethodDeclaration getSetter()
public DecoratedMethodDeclaration getGetter()
public boolean isReadOnly()
public java.util.Map<java.lang.String,com.sun.mirror.declaration.AnnotationMirror> getAnnotations()
getAnnotations
in class DecoratedDeclaration
public java.util.Collection<com.sun.mirror.declaration.AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors
in interface com.sun.mirror.declaration.Declaration
getAnnotationMirrors
in class DecoratedDeclaration
public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationType)
getAnnotation
in interface com.sun.mirror.declaration.Declaration
getAnnotation
in class DecoratedDeclaration
annotationType
- The annotation type.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |