Class MemberTransformer<THIS extends MemberTransformer<THIS>>

java.lang.Object
io.quarkus.gizmo.MemberTransformer<THIS>
Direct Known Subclasses:
FieldTransformer, MethodTransformer

public abstract class MemberTransformer<THIS extends MemberTransformer<THIS>> extends Object
Describes transformation of a class member.
See Also:
  • Field Details

    • addedModifiers

      int addedModifiers
    • removedModifiers

      int removedModifiers
    • newName

      String newName
  • Constructor Details

    • MemberTransformer

      public MemberTransformer()
  • Method Details

    • 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(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