Package net.bytebuddy.asm
Enum Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation
- java.lang.Object
-
- java.lang.Enum<Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation>
-
- net.bytebuddy.asm.Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation>
,Advice.OffsetMapping.ForOrigin.Renderer
- Enclosing interface:
- Advice.OffsetMapping.ForOrigin.Renderer
public static enum Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation extends java.lang.Enum<Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation> implements Advice.OffsetMapping.ForOrigin.Renderer
A renderer for a method'sObject.toString()
representation.
-
-
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.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForStringRepresentation()
-
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.ForStringRepresentation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation[]
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.ForStringRepresentation INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation[] 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.ForStringRepresentation c : Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation.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.ForStringRepresentation 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.
-
-