Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Resolver.Unresolved
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.Resolver.Unresolved>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Resolver.Unresolved
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.Resolver.Unresolved>
,MemberSubstitution.Substitution.Resolver
- Enclosing interface:
- MemberSubstitution.Substitution.Resolver
public static enum MemberSubstitution.Substitution.Resolver.Unresolved extends java.lang.Enum<MemberSubstitution.Substitution.Resolver.Unresolved> implements MemberSubstitution.Substitution.Resolver
An unresolved resolver that does not apply a substitution.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Resolver
MemberSubstitution.Substitution.Resolver.FieldAccessing, MemberSubstitution.Substitution.Resolver.MethodInvoking, MemberSubstitution.Substitution.Resolver.Stubbing, MemberSubstitution.Substitution.Resolver.Unresolved
-
-
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 StackManipulation
apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)
Applies this resolver.boolean
isResolved()
Checks if this resolver was actually resolved, i.e.static MemberSubstitution.Substitution.Resolver.Unresolved
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static MemberSubstitution.Substitution.Resolver.Unresolved[]
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.Resolver.Unresolved INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.Resolver.Unresolved[] 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.Resolver.Unresolved c : MemberSubstitution.Substitution.Resolver.Unresolved.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.Resolver.Unresolved 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
-
isResolved
public boolean isResolved()
Description copied from interface:MemberSubstitution.Substitution.Resolver
Checks if this resolver was actually resolved, i.e. if a member should be substituted at all.- Specified by:
isResolved
in interfaceMemberSubstitution.Substitution.Resolver
- Returns:
true
if a found member should be substituted.
-
apply
public StackManipulation apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)
Description copied from interface:MemberSubstitution.Substitution.Resolver
Applies this resolver. This is only legal for resolved resolvers.- Specified by:
apply
in interfaceMemberSubstitution.Substitution.Resolver
- Parameters:
instrumentedType
- The instrumented type.target
- The substituted byte code element.arguments
- The factual arguments to the byte code element.result
- The expected result type orvoid
if no result is expected.- Returns:
- A stack manipulation that applies the resolved byte code representing the substitution.
-
-