Interface ClassModifier<T extends ClassModifier<T>>

  • Type Parameters:
    T - the extending type
    All Superinterfaces:
    HasModifiers<T>
    All Known Subinterfaces:
    Class

    public interface ClassModifier<T extends ClassModifier<T>>
    Composed trait of all the modifiers that can be added to a Class.
    Since:
    2.0
    Author:
    Emil Forslund
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default T abstract_()
      Adds the abstract keyword to this model.
      default T final_()
      Adds the final keyword to this model.
      default T notAbstract()
      Removes the abstract keyword from this model.
      default T notFinal()
      Removes the final keyword from this model.
      default T notPrivate()
      Removes the private keyword from this model.
      default T notProtected()
      Removes the protected keyword from this model.
      default T notPublic()
      Removes the public keyword from this model.
      default T notStatic()
      Removes the static keyword from this model.
      default T notStrictfp()
      Removes the strictfp keyword from this model.
      default T private_()
      Adds the private keyword to this model.
      default T protected_()
      Adds the protected keyword to this model.
      default T public_()
      Adds the public keyword to this model.
      default T static_()
      Adds the static keyword to this model.
      default T strictfp_()
      Adds the strictfp keyword to this model.
    • Method Detail

      • public_

        default T public_()
        Adds the public keyword to this model.
        Returns:
        a reference to this model
      • notPublic

        default T notPublic()
        Removes the public keyword from this model.
        Returns:
        a reference to this model
      • protected_

        default T protected_()
        Adds the protected keyword to this model.
        Returns:
        a reference to this model
      • notProtected

        default T notProtected()
        Removes the protected keyword from this model.
        Returns:
        a reference to this model
      • private_

        default T private_()
        Adds the private keyword to this model.
        Returns:
        a reference to this model
      • notPrivate

        default T notPrivate()
        Removes the private keyword from this model.
        Returns:
        a reference to this model
      • abstract_

        default T abstract_()
        Adds the abstract keyword to this model.
        Returns:
        a reference to this model
      • notAbstract

        default T notAbstract()
        Removes the abstract keyword from this model.
        Returns:
        a reference to this model
      • static_

        default T static_()
        Adds the static keyword to this model.
        Returns:
        a reference to this model
      • notStatic

        default T notStatic()
        Removes the static keyword from this model.
        Returns:
        a reference to this model
      • final_

        default T final_()
        Adds the final keyword to this model.
        Returns:
        a reference to this model
      • notFinal

        default T notFinal()
        Removes the final keyword from this model.
        Returns:
        a reference to this model
      • strictfp_

        default T strictfp_()
        Adds the strictfp keyword to this model.
        Returns:
        a reference to this model
      • notStrictfp

        default T notStrictfp()
        Removes the strictfp keyword from this model.
        Returns:
        a reference to this model