Interface ImmutableProperty

All Superinterfaces:
ApiHolder
All Known Implementing Classes:
ImmutablePropertyImpl

public interface ImmutableProperty extends ApiHolder
A stricter definition of a Property where the getter is mandatory and the setter missing
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    a Field with the name and tye of this property
     
    2 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 get
    based 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
    return type of getter

    Methods inherited from interface io.determann.shadow.api.ApiHolder

    getApi
  • Method Details

    • getSimpleName

      String getSimpleName()
      based 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
      See Also:
    • getType

      Shadow<TypeMirror> getType()
      return type of getter
      See Also:
    • getField

      Optional<Field> getField()
      a Field with the name and tye of this property
      See Also:
    • getFieldOrThrow

      Field getFieldOrThrow()
      See Also:
    • getGetter

      Method getGetter()
      2 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 get