Package net.bytebuddy.asm
Enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory
- java.lang.Object
-
- java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory>
-
- net.bytebuddy.asm.MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory>
,MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.AllArguments>
- Enclosing class:
- MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments
protected static enum MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory extends java.lang.Enum<MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory> implements MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.AllArguments>
A factory for creating an offset mapping containing all supplies arguments.
-
-
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
ALL_ARGUMENTS_INCLUDE_SELF
TheMemberSubstitution.AllArguments.includeSelf()
property.private static MethodDescription.InDefinedShape
ALL_ARGUMENTS_NULL_IF_EMPTY
TheMemberSubstitution.AllArguments.nullIfEmpty()
property.private static MethodDescription.InDefinedShape
ALL_ARGUMENTS_SOURCE
TheMemberSubstitution.AllArguments.source()
property.private static MethodDescription.InDefinedShape
ALL_ARGUMENTS_TYPING
TheMemberSubstitution.AllArguments.typing()
property.
-
Constructor Summary
Constructors Modifier Constructor Description private
Factory()
-
Method Summary
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.Factory INSTANCE
The singleton instance.
-
-
Field Detail
-
ALL_ARGUMENTS_TYPING
private static final MethodDescription.InDefinedShape ALL_ARGUMENTS_TYPING
TheMemberSubstitution.AllArguments.typing()
property.
-
ALL_ARGUMENTS_SOURCE
private static final MethodDescription.InDefinedShape ALL_ARGUMENTS_SOURCE
TheMemberSubstitution.AllArguments.source()
property.
-
ALL_ARGUMENTS_INCLUDE_SELF
private static final MethodDescription.InDefinedShape ALL_ARGUMENTS_INCLUDE_SELF
TheMemberSubstitution.AllArguments.includeSelf()
property.
-
ALL_ARGUMENTS_NULL_IF_EMPTY
private static final MethodDescription.InDefinedShape ALL_ARGUMENTS_NULL_IF_EMPTY
TheMemberSubstitution.AllArguments.nullIfEmpty()
property.
-
-
Method Detail
-
values
public static MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.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.ForAllArguments.Factory c : MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.ForAllArguments.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.ForAllArguments.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.AllArguments> getAnnotationType()
Returns the type of the annotation for this factory.- Specified by:
getAnnotationType
in interfaceMemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping.Factory<MemberSubstitution.AllArguments>
- Returns:
- The type of the annotation for this factory.
-
make
public MemberSubstitution.Substitution.Chain.Step.ForDelegation.OffsetMapping make(MethodDescription.InDefinedShape target, AnnotationDescription.Loadable<MemberSubstitution.AllArguments> 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.AllArguments>
- 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.AllArguments> 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.AllArguments>
- Parameters:
target
- The parameter that is bound to an expression.annotation
- The annotation that was found on the parameter.- Returns:
- An appropriate offset mapping.
-
-