Package org.openjdk.jmc.agent.impl
Class ResolvedConvertable
java.lang.Object
org.openjdk.jmc.agent.impl.AbstractConvertable
org.openjdk.jmc.agent.impl.ResolvedConvertable
- All Implemented Interfaces:
Convertable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResolvedConvertable(String converterDefinition, Class<?> typeToConvert) ResolvedConvertable(String converterDefinition, org.objectweb.asm.Type type) -
Method Summary
Modifier and TypeMethodDescriptionprivate static Class<?> getClassFromType(org.objectweb.asm.Type type) Class<?> private static MethodgetConvertMethod(Class<?> converterClass, String converterDefinition, Class<?> originalType) private static booleanprivate static booleanparameterIsAssignableType(Parameter p, Class<?> originalType) private static StringresolveClassName(String converterDefinition) private static StringresolveMethodName(String converterDefinition) toString()Methods inherited from class org.openjdk.jmc.agent.impl.AbstractConvertable
getConverterDefinitionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.openjdk.jmc.agent.Convertable
getConverterDefinition, hasConverter
-
Field Details
-
DEFAULT_CONVERTER_METHOD
- See Also:
-
converterMethod
-
-
Constructor Details
-
ResolvedConvertable
public ResolvedConvertable(String converterDefinition, Class<?> typeToConvert) throws MalformedConverterException - Throws:
MalformedConverterException
-
ResolvedConvertable
public ResolvedConvertable(String converterDefinition, org.objectweb.asm.Type type) throws MalformedConverterException - Throws:
MalformedConverterException
-
-
Method Details
-
getConverterClass
-
getConverterMethod
-
getConvertMethod
private static Method getConvertMethod(Class<?> converterClass, String converterDefinition, Class<?> originalType) throws MalformedConverterException - Throws:
MalformedConverterException
-
isValidMethod
-
parameterIsAssignableType
-
resolveClassName
private static String resolveClassName(String converterDefinition) throws MalformedConverterException - Throws:
MalformedConverterException
-
resolveMethodName
private static String resolveMethodName(String converterDefinition) throws MalformedConverterException - Throws:
MalformedConverterException
-
getClassFromType
private static Class<?> getClassFromType(org.objectweb.asm.Type type) throws MalformedConverterException - Throws:
MalformedConverterException
-
toString
-