| Modifier and Type | Class and Description |
|---|---|
| public static class | PropertyUtils.
A utility class to manage the property-related methods that should be synthesized or updated. |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final BaseConfiguration | |
| pack-priv final Pattern | |
| pack-priv final boolean | |
| pack-priv final TypeMirror | |
| pack-priv final Map | |
| pack-priv final Types |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the base name of a property method.a property method propertyMethod)Returns a base name for a property method. |
| public String | Returns: the property getter's name.a property method propertyMethod)Returns a property getter's name. |
| public String | Returns: the property is getter's name.a property method propertyMethod)Returns an "is" method's name for a property method. |
| public PropertyUtils. | Returns: the property helpera type element typeElement)Returns a property helper for the given type element. |
| public String | Returns: the property setter's method name.a property method propertyMethod)Returns a property setter's name. |
| public boolean | Returns: true if the property could have an "is" method, false otherwise.a property method propertyMethod)Returns true if a property method could have an "is" method, meaning
|
| public boolean | Returns: true if the method is a property method, false otherwise.a method method)Returns true if the method is a property method. |
| public boolean | Returns: true if setter method, false otherwise.a setter method setterMethod)Returns true if the given setter method is a valid property setter method. |
| configuration | back to summary |
|---|---|
| pack-priv final BaseConfiguration configuration | |
| fxMethodPatterns | back to summary |
|---|---|
| pack-priv final Pattern fxMethodPatterns | |
| javafx | back to summary |
|---|---|
| pack-priv final boolean javafx | |
| jbObservableType | back to summary |
|---|---|
| pack-priv final TypeMirror jbObservableType | |
| propertyHelpers | back to summary |
|---|---|
| pack-priv final Map<TypeElement, PropertyUtils. | |
| typeUtils | back to summary |
|---|---|
| pack-priv final Types typeUtils | |
| PropertyUtils | back to summary |
|---|---|
| pack-priv PropertyUtils(BaseConfiguration configuration) | |
| getBaseName | back to summary |
|---|---|
| public String getBaseName(ExecutableElement propertyMethod) Returns a base name for a property method. Supposing we
have
| |
| getGetName | back to summary |
|---|---|
| public String getGetName(ExecutableElement propertyMethod) Returns a property getter's name. Supposing we have a property
method
| |
| getIsName | back to summary |
|---|---|
| public String getIsName(ExecutableElement propertyMethod) Returns an "is" method's name for a property method. Supposing
we have a property method
| |
| getPropertyHelper | back to summary |
|---|---|
| public PropertyUtils. Returns a property helper for the given type element.
| |
| getSetName | back to summary |
|---|---|
| public String getSetName(ExecutableElement propertyMethod) Returns a property setter's name. Supposing we have a property
method
| |
| hasIsMethod | back to summary |
|---|---|
| public boolean hasIsMethod(ExecutableElement propertyMethod) Returns true if a property method could have an "is" method, meaning
| |
| isPropertyMethod | back to summary |
|---|---|
| public boolean isPropertyMethod(ExecutableElement method) Returns true if the method is a property method.
| |
| isValidSetterMethod | back to summary |
|---|---|
| public boolean isValidSetterMethod(ExecutableElement setterMethod) Returns true if the given setter method is a valid property setter method.
| |
fooProperty() method (which is the defining characteristic for
a property), a getFoo() method and/or a setFoo(Foo foo) method.
Either the field (if present) or the fooProperty() method should have a
comment. If there is no field, or no comment on the field, the description for
the property will be derived from the description of the fooProperty()
method. If any method does not have a comment, one will be provided.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | addToPropertiesMap(BaseConfiguration configuration, ExecutableElement propertyMethod, VariableElement field, ExecutableElement getter, ExecutableElement setter)
|
| private void | |
| private void | |
| public Element | Returns: the element for the property documentation, null if there is none.the member for which the property documentation is needed. element)Returns the element for the property documentation belonging to the given member. |
| classPropertiesMap | back to summary |
|---|---|
| private Map<Element, Element> classPropertiesMap | |
| PropertyHelper | back to summary |
|---|---|
| private PropertyHelper(BaseConfiguration configuration, TypeElement typeElement) | |
| addToPropertiesMap | back to summary |
|---|---|
| private void addToPropertiesMap(BaseConfiguration configuration, ExecutableElement propertyMethod, VariableElement field, ExecutableElement getter, ExecutableElement setter) | |
| addToPropertiesMap | back to summary |
|---|---|
| private void addToPropertiesMap(BaseConfiguration configuration, Element propertyMethod, Element commentSource) | |
| computeProperties | back to summary |
|---|---|
| private void computeProperties(BaseConfiguration configuration, TypeElement typeElement) | |
| getPropertyElement | back to summary |
|---|---|
| public Element getPropertyElement(Element element) Returns the element for the property documentation belonging to the given member. | |