Enum MethodMatcherValueConverter
- java.lang.Object
-
- java.lang.Enum<MethodMatcherValueConverter>
-
- co.elastic.apm.agent.bci.methodmatching.configuration.MethodMatcherValueConverter
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MethodMatcherValueConverter>,org.stagemonitor.configuration.converter.ValueConverter<MethodMatcher>
public enum MethodMatcherValueConverter extends java.lang.Enum<MethodMatcherValueConverter> implements org.stagemonitor.configuration.converter.ValueConverter<MethodMatcher>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Field Summary
Fields Modifier and Type Field Description static ListValueConverter<MethodMatcher>LIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodMatcherconvert(java.lang.String methodMatcher)java.lang.StringtoSafeString(MethodMatcher value)java.lang.StringtoString(MethodMatcher methodMatcher)static MethodMatcherValueConvertervalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MethodMatcherValueConverter[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final MethodMatcherValueConverter INSTANCE
-
-
Field Detail
-
LIST
public static final ListValueConverter<MethodMatcher> LIST
-
-
Method Detail
-
values
public static MethodMatcherValueConverter[] 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 (MethodMatcherValueConverter c : MethodMatcherValueConverter.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MethodMatcherValueConverter 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
-
convert
public MethodMatcher convert(java.lang.String methodMatcher) throws java.lang.IllegalArgumentException
- Specified by:
convertin interfaceorg.stagemonitor.configuration.converter.ValueConverter<MethodMatcher>- Throws:
java.lang.IllegalArgumentException
-
toString
public java.lang.String toString(MethodMatcher methodMatcher)
- Specified by:
toStringin interfaceorg.stagemonitor.configuration.converter.ValueConverter<MethodMatcher>
-
toSafeString
public java.lang.String toSafeString(MethodMatcher value)
- Specified by:
toSafeStringin interfaceorg.stagemonitor.configuration.converter.ValueConverter<MethodMatcher>
-
-