public static enum MemberSubstitution.Substitution.Resolver.Stubbing extends Enum<MemberSubstitution.Substitution.Resolver.Stubbing> implements MemberSubstitution.Substitution.Resolver
MemberSubstitution.Substitution.Resolver.FieldAccessing, MemberSubstitution.Substitution.Resolver.MethodInvoking, MemberSubstitution.Substitution.Resolver.Stubbing, MemberSubstitution.Substitution.Resolver.Unresolved
Enum Constant and Description |
---|
INSTANCE
The singleton instance.
|
Modifier and Type | Method and 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. if a member should be substituted at all.
|
static MemberSubstitution.Substitution.Resolver.Stubbing |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MemberSubstitution.Substitution.Resolver.Stubbing[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MemberSubstitution.Substitution.Resolver.Stubbing INSTANCE
public static MemberSubstitution.Substitution.Resolver.Stubbing[] values()
for (MemberSubstitution.Substitution.Resolver.Stubbing c : MemberSubstitution.Substitution.Resolver.Stubbing.values()) System.out.println(c);
public static MemberSubstitution.Substitution.Resolver.Stubbing valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isResolved()
MemberSubstitution.Substitution.Resolver
isResolved
in interface MemberSubstitution.Substitution.Resolver
true
if a found member should be substituted.public StackManipulation apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)
MemberSubstitution.Substitution.Resolver
apply
in interface MemberSubstitution.Substitution.Resolver
instrumentedType
- The instrumented type.target
- The substituted byte code element.arguments
- The factual arguments to the byte code element.result
- The expected result type or void
if no result is expected.Copyright © 2014–2017. All rights reserved.