@HashCodeAndEqualsPlugin.Enhance public static class Advice.OffsetMapping.ForOrigin.Renderer.ForConstantValue extends Object implements 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.ForReturnTypeName, Advice.OffsetMapping.ForOrigin.Renderer.ForStringRepresentation, Advice.OffsetMapping.ForOrigin.Renderer.ForTypeName
Constructor and Description |
---|
ForConstantValue(String value)
Creates a new renderer for a constant value.
|
Modifier and Type | Method and Description |
---|---|
String |
apply(TypeDescription instrumentedType,
MethodDescription instrumentedMethod)
Returns a string representation for this renderer.
|
public ForConstantValue(String value)
value
- The constant value.public String apply(TypeDescription instrumentedType, MethodDescription instrumentedMethod)
apply
in interface Advice.OffsetMapping.ForOrigin.Renderer
instrumentedType
- The instrumented type.instrumentedMethod
- The instrumented method.Copyright © 2014–2019. All rights reserved.