@Data public class PropertyImpl extends GenAnnotatedConstruct implements Property
| Constructor and Description |
|---|
PropertyImpl(TypeMirror type,
String name) |
PropertyImpl(TypeMirror type,
String name,
ExecutableElement getter,
ExecutableElement setter,
VariableElement field) |
PropertyImpl(VariableElement field) |
PropertyImpl(VariableElement field,
ExecutableElement getter,
ExecutableElement setter) |
| Modifier and Type | Method and Description |
|---|---|
<R,P> R |
accept(ElementVisitor<R,P> v,
P p) |
TypeMirror |
asType() |
boolean |
equals(Object obj) |
Element |
fieldOrGetter() |
<A extends Annotation> |
getAnnotation(Class<A> annotationType) |
List<? extends AnnotationMirror> |
getAnnotationMirrors() |
Object |
getConstantValue() |
List<? extends Element> |
getEnclosedElements() |
Element |
getEnclosingElement() |
VariableElement |
getField() |
ExecutableElement |
getGetter() |
String |
getGetterName() |
ElementKind |
getKind() |
Set<Modifier> |
getModifiers() |
String |
getName() |
ExecutableElement |
getSetter() |
String |
getSetterName() |
Name |
getSimpleName() |
TypeMirror |
getType() |
int |
hashCode() |
String |
toString() |
PropertyImpl |
withField(VariableElement field) |
PropertyImpl |
withGetter(ExecutableElement getter) |
PropertyImpl |
withSetter(ExecutableElement setter) |
getAnnotationsByTypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAnnotationsByTypepublic PropertyImpl(TypeMirror type, String name, ExecutableElement getter, ExecutableElement setter, VariableElement field)
public PropertyImpl(VariableElement field, ExecutableElement getter, ExecutableElement setter)
public PropertyImpl(VariableElement field)
public PropertyImpl(TypeMirror type, String name)
public PropertyImpl withSetter(ExecutableElement setter)
public PropertyImpl withGetter(ExecutableElement getter)
public PropertyImpl withField(VariableElement field)
public <R,P> R accept(ElementVisitor<R,P> v, P p)
public TypeMirror asType()
public <A extends Annotation> A getAnnotation(Class<A> annotationType)
getAnnotation in interface AnnotatedConstructgetAnnotation in interface ElementgetAnnotation in class GenAnnotatedConstructpublic List<? extends AnnotationMirror> getAnnotationMirrors()
getAnnotationMirrors in interface AnnotatedConstructgetAnnotationMirrors in interface ElementgetAnnotationMirrors in class GenAnnotatedConstructpublic List<? extends Element> getEnclosedElements()
getEnclosedElements in interface Elementpublic Element getEnclosingElement()
getEnclosingElement in interface ElementgetEnclosingElement in interface VariableElementpublic ElementKind getKind()
public Set<Modifier> getModifiers()
getModifiers in interface Elementpublic Name getSimpleName()
getSimpleName in interface ElementgetSimpleName in interface VariableElementpublic Element fieldOrGetter()
fieldOrGetter in interface Propertypublic Object getConstantValue()
getConstantValue in interface VariableElementpublic String getGetterName()
getGetterName in interface Propertypublic String getSetterName()
getSetterName in interface Property@Pure public int hashCode()
@Pure public boolean equals(Object obj)
@Pure public TypeMirror getType()
@Pure public ExecutableElement getGetter()
@Pure public ExecutableElement getSetter()
@Pure public VariableElement getField()
Copyright © 2018. All rights reserved.