Class PropertyImpl
java.lang.Object
io.determann.shadow.impl.property.PropertyImpl
-
Method Summary
Modifier and TypeMethodDescriptionbooleangetApi()getField()aFieldwith the name and tye of this property2 possible types of getters return type boolean, name prefix "is" and no parameters name prefix is "get" and no parameters when both are present "is" is preferred over geta method with the same name as the getter but "set" instead of "is" or "get", return type void and one parameter being the type of the return of the getterbased on the name of the getter without the prefix. if one of the first 2 chars is uppercase the property name is not changed. otherwise the first char is converted to lowercasegetType()return type of getterinthashCode()booleanhas aProperty.getSetter()toString()
-
Method Details
-
of
-
getApi
-
getSimpleName
Description copied from interface:Propertybased on the name of the getter without the prefix. if one of the first 2 chars is uppercase the property name is not changed. otherwise the first char is converted to lowercase- Specified by:
getSimpleNamein interfaceProperty- See Also:
-
getType
Description copied from interface:Propertyreturn type of getter -
getField
Description copied from interface:PropertyaFieldwith the name and tye of this property -
getFieldOrThrow
- Specified by:
getFieldOrThrowin interfaceProperty- See Also:
-
getGetter
Description copied from interface:Property2 possible types of getters- return type boolean, name prefix "is" and no parameters
- name prefix is "get" and no parameters
-
getSetterOrThrow
- Specified by:
getSetterOrThrowin interfaceProperty- See Also:
-
getSetter
Description copied from interface:Propertya method with the same name as the getter but "set" instead of "is" or "get", return type void and one parameter being the type of the return of the getter -
isMutable
public boolean isMutable()Description copied from interface:Propertyhas aProperty.getSetter() -
equals
-
hashCode
public int hashCode() -
toString
-