Home
last modified time | relevance | path

Searched refs:CtMethod (Results 1 – 25 of 34) sorted by relevance

12

/external/javassist/src/main/javassist/
DCtNewMethod.java21 import javassist.CtMethod.ConstParameter;
41 public static CtMethod make(String src, CtClass declaring) in make()
64 public static CtMethod make(String src, CtClass declaring, in make()
74 if (obj instanceof CtMethod) in make()
75 return (CtMethod)obj; in make()
99 public static CtMethod make(CtClass returnType, in make()
126 public static CtMethod make(int modifiers, CtClass returnType, in make()
133 CtMethod cm in make()
134 = new CtMethod(returnType, mname, parameters, declaring); in make()
160 public static CtMethod copy(CtMethod src, CtClass declaring, in copy()
[all …]
DCtMethod.java30 public final class CtMethod extends CtBehavior { class
36 CtMethod(MethodInfo minfo, CtClass declaring) { in CtMethod() method in CtMethod
52 public CtMethod(CtClass returnType, String mname, in CtMethod() method in CtMethod
109 public CtMethod(CtMethod src, CtClass declaring, ClassMap map) in CtMethod() method in CtMethod
126 public static CtMethod make(String src, CtClass declaring) in make()
141 public static CtMethod make(MethodInfo minfo, CtClass declaring) in make()
147 return new CtMethod(minfo, declaring); in make()
182 return obj != null && obj instanceof CtMethod in equals()
183 && ((CtMethod)obj).getStringRep().equals(getStringRep()); in equals()
251 public void setBody(CtMethod src, ClassMap map) in setBody()
[all …]
DCtNewWrappedMethod.java21 import javassist.CtMethod.ConstParameter;
27 public static CtMethod wrapped(CtClass returnType, String mname, in wrapped()
30 CtMethod body, ConstParameter constParam, in wrapped()
34 CtMethod mt = new CtMethod(returnType, mname, parameterTypes, in wrapped()
51 CtMethod wrappedBody, in makeBody()
70 CtMethod wrappedBody, in makeBody0()
123 private static void checkSignature(CtMethod wrappedBody, in checkSignature()
136 CtMethod src) in addBodyMethod()
158 cache.addMethod(new CtMethod(body, clazz)); in addBodyMethod()
DCodeConverter.java347 public void redirectMethodCall(CtMethod origMethod, in redirectMethodCall()
348 CtMethod substMethod) in redirectMethodCall()
388 CtMethod newMethod) in redirectMethodCall()
429 public void insertBeforeMethod(CtMethod origMethod, in insertBeforeMethod()
430 CtMethod beforeMethod) in insertBeforeMethod()
476 public void insertAfterMethod(CtMethod origMethod, in insertAfterMethod()
477 CtMethod afterMethod) in insertAfterMethod()
DCtClass.java654 public CtMethod getEnclosingMethod() throws NotFoundException { in getEnclosingMethod()
814 public CtMethod[] getMethods() { in getMethods()
815 return new CtMethod[0]; in getMethods()
830 public CtMethod getMethod(String name, String desc) in getMethod()
842 public CtMethod[] getDeclaredMethods() { in getDeclaredMethods()
843 return new CtMethod[0]; in getDeclaredMethods()
856 public CtMethod getDeclaredMethod(String name, CtClass[] params) in getDeclaredMethod()
871 public CtMethod getDeclaredMethod(String name) throws NotFoundException { in getDeclaredMethod()
913 public void addMethod(CtMethod m) throws CannotCompileException { in addMethod()
923 public void removeMethod(CtMethod m) throws NotFoundException { in removeMethod()
DSerialVersionUID.java85 CtMethod[] methods = clazz.getDeclaredMethods(); in calculateDefault()
159 CtMethod m1 = (CtMethod)o1; in calculateDefault()
160 CtMethod m2 = (CtMethod)o2; in calculateDefault()
171 CtMethod method = methods[i]; in calculateDefault()
DCtNewWrappedConstructor.java19 import javassist.CtMethod.ConstParameter;
29 CtMethod body, in wrapped()
50 CtMethod wrappedBody, in makeBody()
DCtClassType.java761 public CtMethod getEnclosingMethod() throws NotFoundException { in getEnclosingMethod()
849 CtMethod newMethod = new CtMethod(minfo, this); in makeBehaviorCache()
1087 public CtMethod[] getMethods() { in getMethods()
1090 return (CtMethod[])h.values().toArray(new CtMethod[h.size()]); in getMethods()
1117 h.put(((CtMethod)mth).getStringRep(), mth); in getMethods0()
1122 public CtMethod getMethod(String name, String desc) in getMethod()
1125 CtMethod m = getMethod0(this, name, desc); in getMethod()
1133 private static CtMethod getMethod0(CtClass cc, in getMethod0()
1143 && ((CtMethod)mth).getMethodInfo2().getDescriptor().equals(desc)) in getMethod0()
1144 return (CtMethod)mth; in getMethod0()
[all …]
DCtConstructor.java313 public CtMethod toMethod(String name, CtClass declaring) in toMethod()
347 public CtMethod toMethod(String name, CtClass declaring, ClassMap map) in toMethod()
350 CtMethod method = new CtMethod(null, declaring); in toMethod()
/external/javassist/src/test/test/javassist/bytecode/analysis/
DAnalyzerTest.java9 import javassist.CtMethod;
31 CtMethod method = clazz.getDeclaredMethod("commonSuperArray"); in testCommonSupperArray()
38 CtMethod method = clazz.getDeclaredMethod("commonInterfaceArray"); in testCommonInterfaceArray()
43 CtMethod method = ClassPool.getDefault().getMethod( in testSharedInterfaceAndSuperClass()
57 CtMethod method = ClassPool.getDefault().getMethod( in testArrayDifferentDims()
67 CtMethod method = ClassPool.getDefault().getMethod( in testReusedLocalMerge()
93 private static void verifyReturn(CtMethod method, String expected) throws BadBytecode { in verifyReturn()
112 private static void verifyArrayLoad(CtClass clazz, CtMethod method, String component) in verifyArrayLoad()
149 CtMethod method = generateDeadCode(ClassPool.getDefault()); in testDeadCode()
159 CtMethod method = generateInvalidCode(ClassPool.getDefault()); in testInvalidCode()
[all …]
DErrorFinder.java8 import javassist.CtMethod;
42 CtMethod[] methods = clazz.getDeclaredMethods(); in analyzeClass()
50 private static void analyzeMethod(CtClass clazz, CtMethod method) { in analyzeMethod()
DScannerTest.java8 import javassist.CtMethod;
29 CtMethod method = clazz.getDeclaredMethod("doit"); in testNestedFinally()
107CtMethod method = new CtMethod(CtClass.voidType, "doit", new CtClass[] {CtClass.intType}, clazz); in generate()
/external/javassist/src/main/javassist/tools/reflect/
DReflection.java19 import javassist.CtMethod.ConstParameter;
76 protected CtMethod trapMethod, trapStaticMethod;
77 protected CtMethod trapRead, trapWrite;
278 CtMethod[] ms = clazz.getMethods(); in processMethods()
280 CtMethod m = ms[i]; in processMethods()
288 CtMethod m, int identifier, boolean dontSearch) in processMethods0()
291 CtMethod body; in processMethods0()
297 CtMethod m2; in processMethods0()
326 CtMethod wmethod in processMethods0()
335 private CtMethod findOriginal(CtMethod m, boolean dontSearch) in findOriginal()
[all …]
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/bytecode/
DAndroidTranslator.java238 new CtMethod(CtClass.voidType, "<init>", parameterTypes, ctClass), in generateConstructorBody()
246 for (CtMethod ctMethod : ctClass.getDeclaredMethods()) { in fixMethods()
249 CtMethod equalsMethod = ctClass.getMethod("equals", "(Ljava/lang/Object;)Z"); in fixMethods()
250 CtMethod hashCodeMethod = ctClass.getMethod("hashCode", "()I"); in fixMethods()
251 CtMethod toStringMethod = ctClass.getMethod("toString", "()Ljava/lang/String;"); in fixMethods()
258 private String describe(CtMethod ctMethod) throws NotFoundException { in describe()
262 …private void fixMethod(CtClass ctClass, CtMethod ctMethod, boolean wasFoundInClass) throws NotFoun… in fixMethod()
312CtMethod newMethod = makeNewMethod(ctClass, ctMethod, returnCtClass, methodName, paramTypes, "{\n"… in fixMethod()
320CtMethod newMethod = makeNewMethod(ctClass, ctMethod, returnCtClass, methodName, paramTypes, "{\n"… in fixMethod()
330 …private CtMethod makeNewMethod(CtClass ctClass, CtMethod ctMethod, CtClass returnCtClass, String m… in makeNewMethod()
[all …]
/external/javassist/sample/vector/
DVectorAssistant.java91 CtMethod addmethod = c.getDeclaredMethod("add"); in makeSubclass()
92 CtMethod atmethod = c.getDeclaredMethod("at"); in makeSubclass()
116 CtMethod addmethod = c.getDeclaredMethod("add"); in makeSubclass2()
117 CtMethod atmethod = c.getDeclaredMethod("at"); in makeSubclass2()
121 CtMethod m in makeSubclass2()
/external/javassist/src/main/javassist/convert/
DTransformCall.java19 import javassist.CtMethod;
34 public TransformCall(Transformer next, CtMethod origMethod, in TransformCall()
35 CtMethod substMethod) in TransformCall()
42 CtMethod substMethod) in TransformCall()
92 CtMethod m = clazz.getMethod(methodname, methodDescriptor); in matchClass()
DTransformAfter.java18 import javassist.CtMethod;
24 CtMethod origMethod, CtMethod afterMethod) in TransformAfter()
DTransformBefore.java19 import javassist.CtMethod;
30 CtMethod origMethod, CtMethod beforeMethod) in TransformBefore()
/external/javassist/sample/evolve/
DEvolution.java27 private static CtMethod trapMethod;
135 CtMethod wm = CtNewMethod.wrapped(absClass, handlerMethod, c in makeAbstractClass()
143 CtMethod[] ms = clazz.getDeclaredMethods(); in makeAbstractClass()
145 CtMethod m = ms[i]; in makeAbstractClass()
152 CtMethod m2 = CtNewMethod.abstractMethod(m.getReturnType(), in makeAbstractClass()
185 CtMethod[] ms = clazz.getDeclaredMethods(); in makeConcreteClass()
/external/javassist/src/main/javassist/bytecode/analysis/
DFramePrinter.java20 import javassist.CtMethod;
58 CtMethod[] methods = clazz.getDeclaredMethods(); in print()
64 private String getMethodString(CtMethod method) { in getMethodString()
77 public void print(CtMethod method) { in print()
/external/javassist/src/main/javassist/tools/rmi/
DStubGenerator.java21 import javassist.CtMethod.ConstParameter;
50 private CtMethod forwardMethod;
51 private CtMethod forwardStaticMethod;
200 CtMethod wmethod; in addMethods()
207 CtMethod body; in addMethods()
/external/slf4j/slf4j-ext/src/main/java/org/slf4j/instrumentation/
DJavassistHelper.java29 import javassist.CtMethod;
71 if (method instanceof CtMethod == false) { in methodReturnsValue()
75 CtClass returnType = ((CtMethod) method).getReturnType(); in methodReturnsValue()
/external/javassist/src/main/javassist/expr/
DConstructorCall.java20 import javassist.CtMethod;
51 public CtMethod getMethod() throws NotFoundException { in getMethod()
/external/javassist/sample/
DTest.java37 CtMethod fMethod = cc.getDeclaredMethod("f"); in main()
38 CtMethod gMethod = CtNewMethod.copy(fMethod, "g", cc, null); in main()
/external/javassist/src/test/test/javassist/proxy/
DProxyCacheGCTest.java70CtMethod targetMethod = CtNewMethod.make("public Object test() { return this; }", ctTargetClass); in createProxy()
79CtMethod handlerInvoke = CtNewMethod.make("public Object invoke(Object self, java.lang.reflect.Met… in createProxy()
86CtMethod filterIsHandled = CtNewMethod.make("public boolean isHandled(java.lang.reflect.Method m) … in createProxy()

12