Package net.bytebuddy.asm
Enum Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName
- java.lang.Object
-
- java.lang.Enum<Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName>
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName>
,Advice.OffsetMapping.ForOrigin.Renderer
- Enclosing interface:
- Advice.OffsetMapping.ForOrigin.Renderer
public static enum Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName extends java.lang.Enum<Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName> implements Advice.OffsetMapping.ForOrigin.Renderer
A renderer for a method's internal name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.asm.Advice.OffsetMapping.ForOrigin.Renderer
Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue, Advice.OffsetMapping.ForOrigin.Renderer.ForDescriptor, Advice.OffsetMapping.ForOrigin.Renderer.ForJavaSignature, Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName, Advice.OffsetMapping.ForOrigin.Renderer.ForPropertyName, Advice.OffsetMapping.ForOrigin.Renderer.ForReturnTypeName, Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation, Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Field Summary
Fields Modifier and Type Field Description static char
SYMBOL
The method name symbol.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForMethodName()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.static Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName INSTANCE
The singleton instance.
-
-
Field Detail
-
SYMBOL
public static final char SYMBOL
The method name symbol.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName[] 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 (Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName c : Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Advice.OffsetMapping.ForOrigin.Renderer.ForMethodName 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
-
apply
public java.lang.String apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
Returns a string representation for this renderer.- Specified by:
apply
in interfaceAdvice.OffsetMapping.ForOrigin.Renderer
- Parameters:
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.- Returns:
- The string representation.
-
-