public class PropertyElement extends DecoratedExecutableElement
delegate, env| Constructor and Description |
|---|
PropertyElement(DecoratedExecutableElement getter,
DecoratedExecutableElement setter,
DecoratedProcessingEnvironment env)
A property declaration.
|
PropertyElement(DecoratedExecutableElement getter,
DecoratedExecutableElement setter,
PropertySpec spec,
DecoratedProcessingEnvironment env) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
TypeMirror |
asType() |
<A extends Annotation> |
getAnnotation(Class<A> annotationType)
Gets the annotation on the getter.
|
List<AnnotationMirror> |
getAnnotationMirrors()
Gets the collection of annotations on the setter and the getter.
|
Map<String,AnnotationMirror> |
getAnnotations()
Gets the annotations on the setter and the getter.
|
DecoratedExecutableElement |
getGetter()
The getter.
|
String |
getPropertyName()
Make sure the property name is calculated correctly.
|
TypeMirror |
getPropertyType()
The type of this property.
|
TypeMirror |
getReturnType() |
DecoratedExecutableElement |
getSetter()
The setter, or null if this property is a read-only property.
|
Name |
getSimpleName()
The simple name of the property is the property name.
|
boolean |
isGetter() |
boolean |
isReadOnly()
Whether this property is read-only.
|
boolean |
isSetter() |
boolean |
isVarArgs() |
boolean |
isWriteOnly()
Whether this property is write-only.
|
createParamDocComment, getDefaultValue, getParameters, getThrownTypes, getTypeParametersequals, getDelegate, getDocComment, getDocValue, getDocValue, getEnclosedElements, getEnclosingElement, getJavaDoc, getJavaDoc, getJavaDoc, getKind, getModifiers, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, toStringclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, getEnclosedElements, getEnclosingElement, getKind, getModifiers, hashCodepublic PropertyElement(DecoratedExecutableElement getter, DecoratedExecutableElement setter, DecoratedProcessingEnvironment env)
getter - The getter.setter - The setter.IllegalStateException - If the getter and setter don't pair up.public PropertyElement(DecoratedExecutableElement getter, DecoratedExecutableElement setter, PropertySpec spec, DecoratedProcessingEnvironment env)
public TypeMirror asType()
asType in interface ElementasType in class DecoratedElement<ExecutableElement>public TypeMirror getPropertyType()
public Name getSimpleName()
getSimpleName in interface ElementgetSimpleName in interface ExecutableElementgetSimpleName in class DecoratedElement<ExecutableElement>public String getPropertyName()
getPropertyName in class DecoratedExecutableElementpublic DecoratedExecutableElement getSetter()
public DecoratedExecutableElement getGetter()
public boolean isReadOnly()
public boolean isWriteOnly()
public Map<String,AnnotationMirror> getAnnotations()
getAnnotations in class DecoratedElement<ExecutableElement>public List<AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface ElementgetAnnotationMirrors in class DecoratedElement<ExecutableElement>public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface ElementgetAnnotation in class DecoratedElement<ExecutableElement>annotationType - The annotation type.public TypeMirror getReturnType()
getReturnType in interface ExecutableElementgetReturnType in class DecoratedExecutableElementpublic boolean isGetter()
isGetter in class DecoratedExecutableElementpublic boolean isSetter()
isSetter in class DecoratedExecutableElementpublic boolean isVarArgs()
isVarArgs in interface ExecutableElementisVarArgs in class DecoratedExecutableElementpublic <R,P> R accept(ElementVisitor<R,P> v, P p)
accept in interface Elementaccept in class DecoratedExecutableElementCopyright © 2006-2016–2017. All rights reserved.