Package net.bytebuddy.asm
Enum Class MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory
java.lang.Object
java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory>
net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory
- All Implemented Interfaces:
Serializable
,Comparable<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory>
,Constable
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.FieldGetterHandle>
- Enclosing class:
MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved
protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory
extends Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory>
implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.FieldGetterHandle>
A factory for creating a method handle representing a getter for the targeted field.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
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 Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.Simple<S extends Annotation>, MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory.WithParameterSupportOnly<S extends Annotation>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final MethodDescription.InDefinedShape
private static final MethodDescription.InDefinedShape
TheMemberSubstitution.FieldGetterHandle.value()
method. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the annotation for this factory.make
(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.FieldGetterHandle> annotation) Creates an offset mapping for an annotation that was found on a non-static method.make
(ParameterDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.FieldGetterHandle> annotation) Creates an offset mapping for a parameter of the method or constructor that is the delegation target.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory INSTANCEThe singleton instance.
-
-
Field Details
-
FIELD_GETTER_HANDLE_VALUE
TheMemberSubstitution.FieldGetterHandle.value()
method. -
FIELD_GETTER_HANDLE_DECLARING_TYPE
-
-
Constructor Details
-
GetterFactory
private GetterFactory()
-
-
Method Details
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory[] values()Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForFieldHandle.Unresolved.GetterFactory valueOf(String name) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAnnotationType
Returns the type of the annotation for this factory.- Specified by:
getAnnotationType
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.FieldGetterHandle>
- Returns:
- The type of the annotation for this factory.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.FieldGetterHandle> 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.FieldGetterHandle>
- 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.FieldGetterHandle> 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.FieldGetterHandle>
- Parameters:
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-