Package io.quarkus.gizmo
Class MemberTransformer<THIS extends MemberTransformer<THIS>>
java.lang.Object
io.quarkus.gizmo.MemberTransformer<THIS>
- Direct Known Subclasses:
FieldTransformer,MethodTransformer
Describes transformation of a class member.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) int(package private) String(package private) int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddModifiers(int modifiers) Adds givenmodifiersto the modifiers of this method or field.removeModifiers(int modifiers) Removes givenmodifiersfrom the modifiers of this method or field.Renames this method or field to givenname.(package private) final THISself()
-
Field Details
-
addedModifiers
int addedModifiers -
removedModifiers
int removedModifiers -
newName
String newName
-
-
Constructor Details
-
MemberTransformer
public MemberTransformer()
-
-
Method Details
-
self
-
addModifiers
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
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
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
-