Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution
-
- All Known Implementing Classes:
MemberSubstitution.Substitution.Compound
,MemberSubstitution.Substitution.ForElementMatchers
,MemberSubstitution.Substitution.NoOp
- Enclosing class:
- MemberSubstitution
protected static interface MemberSubstitution.Substitution
Resolves an actual substitution.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
MemberSubstitution.Substitution.Compound
A compound substitution.static class
MemberSubstitution.Substitution.ForElementMatchers
A substitution that uses element matchers for determining if a byte code element should be substituted.static class
MemberSubstitution.Substitution.InvocationType
Determines a method's invocation type.static class
MemberSubstitution.Substitution.NoOp
A substitution that does not substitute any byte code elements.static interface
MemberSubstitution.Substitution.Resolver
A resolver supplies an implementation for a substitution.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MemberSubstitution.Substitution.Resolver
resolve(FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Resolves a field access within a method body.MemberSubstitution.Substitution.Resolver
resolve(MethodDescription methodDescription, MemberSubstitution.Substitution.InvocationType invocationType)
Resolves a method invocation within a method body.
-
-
-
Method Detail
-
resolve
MemberSubstitution.Substitution.Resolver resolve(FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Resolves a field access within a method body.- Parameters:
fieldDescription
- The field being accessed.writeAccess
-true
if the access is for writing to the field,false
if the field is read.- Returns:
- A resolver for the supplied field access.
-
resolve
MemberSubstitution.Substitution.Resolver resolve(MethodDescription methodDescription, MemberSubstitution.Substitution.InvocationType invocationType)
Resolves a method invocation within a method body.- Parameters:
methodDescription
- The method being invoked.invocationType
- The method's invocation type.- Returns:
- A resolver for the supplied method invocation.
-
-