Class MemberTransformer<THIS extends MemberTransformer<THIS>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      THIS addModifiers​(int modifiers)
      Adds given modifiers to the modifiers of this method or field.
      THIS removeModifiers​(int modifiers)
      Removes given modifiers from the modifiers of this method or field.
      THIS rename​(java.lang.String name)
      Renames this method or field to given name.
      (package private) THIS self()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • addedModifiers

        int addedModifiers
      • removedModifiers

        int removedModifiers
      • newName

        java.lang.String newName
    • Constructor Detail

      • MemberTransformer

        public MemberTransformer()
    • Method Detail

      • self

        final THIS self()
      • addModifiers

        public THIS addModifiers​(int modifiers)
        Adds given modifiers to the modifiers of this method or field. It is a responsibility of the caller to make sure the resulting set of modifiers is valid.
        Parameters:
        modifiers - the modifiers to add to this method or field
        Returns:
        this, to allow fluent usage
      • removeModifiers

        public THIS removeModifiers​(int modifiers)
        Removes given modifiers from the modifiers of this method or field. It is a responsibility of the caller to make sure the resulting set of modifiers is valid.
        Parameters:
        modifiers - the modifiers to remove from this method or field
        Returns:
        this, to allow fluent usage
      • rename

        public THIS rename​(java.lang.String name)
        Renames this method or field to given name. Other properties of the method or field, such as the signature or modifiers, are left intact. If no matching method or field exists in the class, this is a noop.
        Parameters:
        name - new name of the method or field
        Returns:
        this, to allow fluent usage