Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory>
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.StubValue>
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue
@Enhance protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory extends java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory> implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.StubValue>
A factory for creating an offset mapping for a stub value.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.AbstractBase<S extends java.lang.annotation.Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends java.lang.annotation.Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S extends java.lang.annotation.Annotation>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
Fields Modifier and Type Field Description private static MethodDescription.InDefinedShape
STUB_VALUE_SOURCE
TheMemberSubstitution.StubValue.source()
property.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory INSTANCE
The singleton instance.
-
-
Field Detail
-
STUB_VALUE_SOURCE
private static final MethodDescription.InDefinedShape STUB_VALUE_SOURCE
TheMemberSubstitution.StubValue.source()
property.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory[] 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.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory c : MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory.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.Chain.Step.ForDelegation.OffsetMapping.ForStubValue.Factory 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
-
getAnnotationType
public java.lang.Class<MemberSubstitution.StubValue> getAnnotationType()
Returns the type of the annotation for this factory.- Specified by:
getAnnotationType
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.StubValue>
- Returns:
- The type of the annotation for this factory.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.StubValue> annotation)
Creates an offset mapping for an annotation that was found on a non-static method.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.StubValue>
- Parameters:
target
- The method that is the delegated to.annotation
- The annotation that was found on the method.- Returns:
- An appropriate offset mapping.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.StubValue> annotation)
Creates an offset mapping for a parameter of the method or constructor that is the delegation target.- Specified by:
make
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.StubValue>
- Parameters:
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-
-