Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory>
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.Handle>
protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory extends java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory> implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.Handle>
A factory to create an offset mapping for a method handle.
-
-
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
HANDLE_NAME
TheMemberSubstitution.Handle.name()
method.private static MethodDescription.InDefinedShape
HANDLE_OWNER
TheMemberSubstitution.Handle.owner()
method.private static MethodDescription.InDefinedShape
HANDLE_PARAMETER_TYPES
TheMemberSubstitution.Handle.parameterTypes()
method.private static MethodDescription.InDefinedShape
HANDLE_RETURN_TYPE
TheMemberSubstitution.Handle.returnType()
method.private static MethodDescription.InDefinedShape
HANDLE_TYPE
TheMemberSubstitution.Handle.type()
method.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.Factory INSTANCE
The singleton instance.
-
-
Field Detail
-
HANDLE_TYPE
private static final MethodDescription.InDefinedShape HANDLE_TYPE
TheMemberSubstitution.Handle.type()
method.
-
HANDLE_OWNER
private static final MethodDescription.InDefinedShape HANDLE_OWNER
TheMemberSubstitution.Handle.owner()
method.
-
HANDLE_NAME
private static final MethodDescription.InDefinedShape HANDLE_NAME
TheMemberSubstitution.Handle.name()
method.
-
HANDLE_RETURN_TYPE
private static final MethodDescription.InDefinedShape HANDLE_RETURN_TYPE
TheMemberSubstitution.Handle.returnType()
method.
-
HANDLE_PARAMETER_TYPES
private static final MethodDescription.InDefinedShape HANDLE_PARAMETER_TYPES
TheMemberSubstitution.Handle.parameterTypes()
method.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.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.ForHandle.Factory c : MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForHandle.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.ForHandle.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.Handle> getAnnotationType()
Returns the type of the annotation for this factory.- Specified by:
getAnnotationType
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.Handle>
- Returns:
- The type of the annotation for this factory.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.Handle> 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.Handle>
- 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.Handle> 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.Handle>
- Parameters:
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-
-