public class RuntimeSupport extends Object
ProxyFactory
Modifier and Type | Field and Description |
---|---|
static MethodHandler |
default_interceptor
A method handler that only executes a method.
|
Constructor and Description |
---|
RuntimeSupport() |
Modifier and Type | Method and Description |
---|---|
static void |
find2Methods(Class clazz,
String superMethod,
String thisMethod,
int index,
String desc,
Method[] methods)
Finds two methods specified by the parameters and stores them
into the given array.
|
static void |
find2Methods(Object self,
String superMethod,
String thisMethod,
int index,
String desc,
Method[] methods)
Deprecated.
|
static Method |
findMethod(Class clazz,
String name,
String desc)
Finds a method with the given name and descriptor.
|
static Method |
findMethod(Object self,
String name,
String desc)
Deprecated.
replaced by
findMethod(Class, String, String) |
static Method |
findSuperClassMethod(Class clazz,
String name,
String desc)
Finds a method that has the given name and descriptor and is declared
in the super class.
|
static Method |
findSuperMethod(Object self,
String name,
String desc)
Finds a method that has the given name and descriptor and is declared
in the super class.
|
static String |
makeDescriptor(Class[] params,
Class retType)
Makes a descriptor for a given method.
|
static String |
makeDescriptor(Method m)
Makes a descriptor for a given method.
|
static String |
makeDescriptor(String params,
Class retType)
Makes a descriptor for a given method.
|
static javassist.util.proxy.SerializedProxy |
makeSerializedProxy(Object proxy)
Converts a proxy object to an object that is writable to an
object stream.
|
public static MethodHandler default_interceptor
public static void find2Methods(Class clazz, String superMethod, String thisMethod, int index, String desc, Method[] methods)
RuntimeException
- if the methods are not found.ProxyFactory
public static void find2Methods(Object self, String superMethod, String thisMethod, int index, String desc, Method[] methods)
find2Methods(Class, String, String, int, String, Method[])
Added back for JBoss Seam. See JASSIST-206.
RuntimeException
- if the methods are not found.ProxyFactory
public static Method findMethod(Object self, String name, String desc)
findMethod(Class, String, String)
Added back for JBoss Seam. See JASSIST-206.
RuntimeException
- if the method is not found.public static Method findMethod(Class clazz, String name, String desc)
RuntimeException
- if the method is not found.public static Method findSuperMethod(Object self, String name, String desc)
RuntimeException
- if the method is not found.public static Method findSuperClassMethod(Class clazz, String name, String desc)
RuntimeException
- if the method is not found.public static String makeDescriptor(Class[] params, Class retType)
params
- parameter types.retType
- return type.public static String makeDescriptor(String params, Class retType)
params
- the descriptor of parameter types.retType
- return type.public static javassist.util.proxy.SerializedProxy makeSerializedProxy(Object proxy) throws InvalidClassException
writeReplace()
in a proxy class.InvalidClassException
Copyright © 2024. All rights reserved.