Package io.quarkus.gizmo
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 java.lang.ObjectDescribes transformation of a class member.- See Also:
ClassTransformer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) intaddedModifiers(package private) java.lang.StringnewName(package private) intremovedModifiers
-
Constructor Summary
Constructors Constructor Description MemberTransformer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description THISaddModifiers(int modifiers)Adds givenmodifiersto the modifiers of this method or field.THISremoveModifiers(int modifiers)Removes givenmodifiersfrom the modifiers of this method or field.THISrename(java.lang.String name)Renames this method or field to givenname.(package private) THISself()
-
-
-
Method Detail
-
self
final THIS self()
-
addModifiers
public THIS addModifiers(int modifiers)
Adds givenmodifiersto 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 givenmodifiersfrom 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 givenname. 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
-
-