Package net.bytebuddy.asm
Class MemberSubstitution.Substitution.Compound
- java.lang.Object
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Compound
-
- All Implemented Interfaces:
MemberSubstitution.Substitution
- Enclosing interface:
- MemberSubstitution.Substitution
public static class MemberSubstitution.Substitution.Compound extends java.lang.Object implements MemberSubstitution.Substitution
A compound substitution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution
MemberSubstitution.Substitution.Compound, MemberSubstitution.Substitution.ForElementMatchers, MemberSubstitution.Substitution.InvocationType, MemberSubstitution.Substitution.NoOp, MemberSubstitution.Substitution.Resolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCompound(java.util.List<? extends MemberSubstitution.Substitution> substitutions)Creates a new compound substitution.protectedCompound(MemberSubstitution.Substitution... substitution)Creates a new compound substitution.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MemberSubstitution.Substitution.Resolverresolve(FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)Resolves a field access within a method body.MemberSubstitution.Substitution.Resolverresolve(MethodDescription methodDescription, MemberSubstitution.Substitution.InvocationType invocationType)Resolves a method invocation within a method body.
-
-
-
Constructor Detail
-
Compound
protected Compound(MemberSubstitution.Substitution... substitution)
Creates a new compound substitution.- Parameters:
substitution- The substitutions to apply in their application order.
-
Compound
protected Compound(java.util.List<? extends MemberSubstitution.Substitution> substitutions)
Creates a new compound substitution.- Parameters:
substitutions- The substitutions to apply in their application order.
-
-
Method Detail
-
resolve
public MemberSubstitution.Substitution.Resolver resolve(FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Description copied from interface:MemberSubstitution.SubstitutionResolves a field access within a method body.- Specified by:
resolvein interfaceMemberSubstitution.Substitution- Parameters:
fieldDescription- The field being accessed.writeAccess-trueif the access is for writing to the field,falseif the field is read.- Returns:
- A resolver for the supplied field access.
-
resolve
public MemberSubstitution.Substitution.Resolver resolve(MethodDescription methodDescription, MemberSubstitution.Substitution.InvocationType invocationType)
Description copied from interface:MemberSubstitution.SubstitutionResolves a method invocation within a method body.- Specified by:
resolvein interfaceMemberSubstitution.Substitution- Parameters:
methodDescription- The method being invoked.invocationType- The method's invocation type.- Returns:
- A resolver for the supplied method invocation.
-
-