Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.NoOp
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.NoOp>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.NoOp
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.NoOp>
,MemberSubstitution.Substitution
- Enclosing interface:
- MemberSubstitution.Substitution
public static enum MemberSubstitution.Substitution.NoOp extends java.lang.Enum<MemberSubstitution.Substitution.NoOp> implements MemberSubstitution.Substitution
A substitution that does not substitute any byte code elements.
-
-
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete 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.static MemberSubstitution.Substitution.NoOp
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberSubstitution.Substitution.NoOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MemberSubstitution.Substitution.NoOp INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.NoOp[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MemberSubstitution.Substitution.NoOp c : MemberSubstitution.Substitution.NoOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MemberSubstitution.Substitution.NoOp valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
resolve
public MemberSubstitution.Substitution.Resolver resolve(FieldDescription.InDefinedShape fieldDescription, boolean writeAccess)
Description copied from interface:MemberSubstitution.Substitution
Resolves a field access within a method body.- Specified by:
resolve
in interfaceMemberSubstitution.Substitution
- 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
public MemberSubstitution.Substitution.Resolver resolve(MethodDescription methodDescription, MemberSubstitution.Substitution.InvocationType invocationType)
Description copied from interface:MemberSubstitution.Substitution
Resolves a method invocation within a method body.- Specified by:
resolve
in interfaceMemberSubstitution.Substitution
- Parameters:
methodDescription
- The method being invoked.invocationType
- The method's invocation type.- Returns:
- A resolver for the supplied method invocation.
-
-