Home
last modified time | relevance | path

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

123

/external/javassist/src/main/javassist/
DCtNewMethod.java19 import javassist.CtMethod.ConstParameter;
47 public static CtMethod make(String src, CtClass declaring) in make()
70 public static CtMethod make(String src, CtClass declaring, in make()
80 if (obj instanceof CtMethod) in make()
81 return (CtMethod)obj; in make()
105 public static CtMethod make(CtClass returnType, in make()
132 public static CtMethod make(int modifiers, CtClass returnType, in make()
139 CtMethod cm in make()
140 = new CtMethod(returnType, mname, parameters, declaring); in make()
166 public static CtMethod copy(CtMethod src, CtClass declaring, in copy()
[all …]
DCtMethod.java39 public final class CtMethod extends CtBehavior { class
45 CtMethod(MethodInfo minfo, CtClass declaring) { in CtMethod() method in CtMethod
61 public CtMethod(CtClass returnType, String mname, in CtMethod() method in CtMethod
120 public CtMethod(CtMethod src, CtClass declaring, ClassMap map) in CtMethod() method in CtMethod
137 public static CtMethod make(String src, CtClass declaring) in make()
152 public static CtMethod make(MethodInfo minfo, CtClass declaring) in make()
158 return new CtMethod(minfo, declaring); in make()
196 return obj != null && obj instanceof CtMethod in equals()
197 && ((CtMethod)obj).getStringRep().equals(getStringRep()); in equals()
268 public void setBody(CtMethod src, ClassMap map) in setBody()
[all …]
DCtNewWrappedMethod.java21 import javassist.CtMethod.ConstParameter;
34 public static CtMethod wrapped(CtClass returnType, String mname, in wrapped()
37 CtMethod body, ConstParameter constParam, in wrapped()
41 CtMethod mt = new CtMethod(returnType, mname, parameterTypes, in wrapped()
60 CtMethod wrappedBody, in makeBody()
79 CtMethod wrappedBody, in makeBody0()
132 private static void checkSignature(CtMethod wrappedBody, in checkSignature()
145 CtMethod src) in addBodyMethod()
148 Map<CtMethod,String> bodies = clazz.getHiddenMethods(); in addBodyMethod()
167 cache.addMethod(new CtMethod(body, clazz)); in addBodyMethod()
DCtClass.java788 public final CtMethod getEnclosingMethod() throws NotFoundException { in getEnclosingMethod()
792 else if (b instanceof CtMethod) in getEnclosingMethod()
793 return (CtMethod)b; in getEnclosingMethod()
966 public CtMethod[] getMethods() { in getMethods()
967 return new CtMethod[0]; in getMethods()
982 public CtMethod getMethod(String name, String desc) in getMethod()
994 public CtMethod[] getDeclaredMethods() { in getDeclaredMethods()
995 return new CtMethod[0]; in getDeclaredMethods()
1008 public CtMethod getDeclaredMethod(String name, CtClass[] params) in getDeclaredMethod()
1024 public CtMethod[] getDeclaredMethods(String name) throws NotFoundException { in getDeclaredMethods()
[all …]
DCodeConverter.java361 public void redirectMethodCall(CtMethod origMethod, in redirectMethodCall()
362 CtMethod substMethod) in redirectMethodCall()
402 CtMethod newMethod) in redirectMethodCall()
443 public void insertBeforeMethod(CtMethod origMethod, in insertBeforeMethod()
444 CtMethod beforeMethod) in insertBeforeMethod()
491 public void insertAfterMethod(CtMethod origMethod, in insertAfterMethod()
492 CtMethod afterMethod) in insertAfterMethod()
DSerialVersionUID.java93 CtMethod[] methods = clazz.getDeclaredMethods(); in calculateDefault()
163 Arrays.sort(methods, new Comparator<CtMethod>() { in calculateDefault()
165 public int compare(CtMethod m1, CtMethod m2) { in calculateDefault()
176 CtMethod method = methods[i]; in calculateDefault()
DCtNewWrappedConstructor.java19 import javassist.CtMethod.ConstParameter;
32 CtMethod body, in wrapped()
54 CtMethod wrappedBody, in makeBody()
/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()
/external/javassist/src/test/javassist/
DJvstTest.java175 public static CtMethod testCalleeBeforeMethod;
183 CtMethod m1 = cc.getDeclaredMethod("m1"); in testCalleeBefore()
185 CtMethod m2 = cc.getDeclaredMethod("m2"); in testCalleeBefore()
218 CtMethod m1 = cc.getDeclaredMethod("m1"); in testCalleeAfter()
221 CtMethod m2 = cc.getDeclaredMethod("m2"); in testCalleeAfter()
235 CtMethod m1 = cc.getDeclaredMethod("m1"); in testCalleeAfter2()
238 CtMethod m2 = cc.getDeclaredMethod("m2"); in testCalleeAfter2()
241 CtMethod m3 = cc.getDeclaredMethod("m3"); in testCalleeAfter2()
244 CtMethod m4 = cc.getDeclaredMethod("m4"); in testCalleeAfter2()
252 CtMethod m5 = cc.getDeclaredMethod("m5"); in testCalleeAfter2()
[all …]
DJvstTest2.java23 CtMethod m1 = cc.getDeclaredMethod("foo"); in testInsertAt()
36 CtMethod m2 = cc.getDeclaredMethod("bar2"); in testInsertAt()
48 CtMethod m1 = cc.getDeclaredMethod("foo"); in testInsertLocal()
52 CtMethod m2 = cc.getDeclaredMethod("run2"); in testInsertLocal()
55 CtMethod m3 = cc.getDeclaredMethod("run3"); in testInsertLocal()
77 CtMethod m = CtNewMethod.make( in testStaticMember()
158 CtMethod m1 = cc.getDeclaredMethod("foo"); in testSuperCall()
197 CtMethod m = cc2.getDeclaredMethod("foo"); in testReplaceClassName()
203 CtMethod m1 = cc.getDeclaredMethod("run"); in testCodeGen()
216 CtMethod m2 = CtNewMethod.make( in testCodeGen()
[all …]
DJvstTest3.java147 CtMethod m1 = cc.getDeclaredMethod("test"); in testInnerClassMethod()
150 CtMethod m2 = CtNewMethod.make( in testInnerClassMethod()
181 CtMethod m1 = cc.getDeclaredMethod("run"); in testReplaceNew()
188 CtMethod m2 = cc.getDeclaredMethod("run2"); in testReplaceNew()
267 cc2.addMethod(CtMethod.make( in testConstructorToMethod()
351 CtMethod m1 = cc.getDeclaredMethod("run"); in testRecursiveReplace()
368 CtMethod m2 = cc.getDeclaredMethod("run2"); in testRecursiveReplace()
404 CtMethod m1 = cc.getDeclaredMethod("run"); in testRecursiveReplace2()
407 CtMethod m2 = cc.getDeclaredMethod("run2"); in testRecursiveReplace2()
426 CtMethod m1 = CtNewMethod.make( in testMethodLookup()
[all …]
DJvstTest4.java26 CtMethod m1 = cc.getDeclaredMethod("run"); in testInsertLocalVars()
29 CtMethod m2 = cc.getDeclaredMethod("run2"); in testInsertLocalVars()
41 CtMethod m1 = cc.getDeclaredMethod("m1"); in testCodeConv()
42 CtMethod m2 = cc.getDeclaredMethod("m2"); in testCodeConv()
43 CtMethod m3 = cc.getDeclaredMethod("m3"); in testCodeConv()
57 CtMethod run = cc.getDeclaredMethod("run"); in testCodeConv2()
77 CtMethod m1 = cc.getDeclaredMethod("run"); in testInsGap()
79 CtMethod m2 = cc.getDeclaredMethod("run2"); in testInsGap()
82 final CtMethod m3 = cc.getDeclaredMethod("run3"); in testInsGap()
104 CtMethod m1 = cc.getDeclaredMethod("foo"); in testAnnotationCheck()
[all …]
DJvstTest5.java26CtMethod m = CtNewMethod.make("public static int run(){ return $class.getName().length(); }", cc); in testDollarClassInStaticMethod()
38CtMethod m = CtNewMethod.make("public int run(){ return test5.DefaultMethodIntf.super.foo(); }", c… in testSuperDefaultMethodCall()
63 CtMethod testMethod = cc.getDeclaredMethod("test"); in testJIRA241()
74 CtMethod ctMethod = CtMethod.make(methodBody, ctClass); in testJIRA246()
81 CtMethod make = CtNewMethod.make(src, ctClass); in testJIRA246b()
88 CtMethod m = cc.getDeclaredMethod("say"); in testJIRA242()
110 CtMethod testMethod = cc.getDeclaredMethod("test"); in testJIRA249()
142 CtMethod ctMethod = CtMethod.make(methodBody, cc); in testJIRA248()
152 for (CtMethod method : c.getDeclaredMethods()) in testInvalidCastWithDollar()
194 CtMethod mth = cc.getDeclaredMethod("bar"); in testProceedToDefaultMethod()
[all …]
DBench.java14 CtMethod m1 = cc.getDeclaredMethod("p"); in testProceed()
22 CtMethod m2 = cc.getDeclaredMethod("q"); in testProceed()
30 CtMethod m3 = cc.getDeclaredMethod("s"); in testProceed()
42 CtMethod m4 = cc.getDeclaredMethod("t"); in testProceed()
68 CtMethod m1 = cc.getDeclaredMethod("jvst0");
75 CtMethod m2 = cc.getDeclaredMethod("jvst2");
94 CtMethod m1 = cc.getDeclaredMethod("test");
/external/javassist/src/main/javassist/tools/reflect/
DReflection.java24 import javassist.CtMethod;
25 import javassist.CtMethod.ConstParameter;
89 protected CtMethod trapMethod, trapStaticMethod;
90 protected CtMethod trapRead, trapWrite;
295 CtMethod[] ms = clazz.getMethods(); in processMethods()
297 CtMethod m = ms[i]; in processMethods()
305 CtMethod m, int identifier, boolean dontSearch) in processMethods0()
308 CtMethod body; in processMethods0()
314 CtMethod m2; in processMethods0()
343 CtMethod wmethod in processMethods0()
[all …]
/external/javassist/src/test/
DJassist150.java4 import javassist.CtMethod;
32 CtMethod ccGet = cc.getDeclaredMethod("get"); in implTestClassTailCache()
54 public static void loop(CtClass cc, CtMethod ccGet, String code) in loop()
73 CtMethod ccGet = cc.getDeclaredMethod("get"); in implTestClassTailCache2()
85 CtMethod mth = cc.getDeclaredMethod("buildColumnOverride"); in testJIRA152()
/external/javassist/src/test/test3/
DEnhancer.java80 CtMethod[] methods = superClass.getMethods(); in overrideAll()
83 CtMethod m = methods[i]; in overrideAll()
91 public void override(CtMethod m, String delegatorName) in override()
98 CtMethod delegator = CtNewMethod.delegator(m, thisClass); in override()
106 private CtMethod makeMethod(CtMethod m, String fieldName, in makeMethod()
117 CtMethod m2 = CtNewMethod.make(m.getReturnType(), in makeMethod()
/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.java21 import javassist.CtMethod;
38 public TransformCall(Transformer next, CtMethod origMethod, in TransformCall()
39 CtMethod substMethod) in TransformCall()
46 CtMethod substMethod) in TransformCall()
98 CtMethod m = clazz.getMethod(methodname, methodDescriptor); in matchClass()
DTransformAfter.java19 import javassist.CtMethod;
26 CtMethod origMethod, CtMethod afterMethod) in TransformAfter()
/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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistAnnotationMemberDeclaration.java7 import javassist.CtMethod;
14 private CtMethod annotationMember;
17 public JavassistAnnotationMemberDeclaration(CtMethod annotationMember, TypeSolver typeSolver) { in JavassistAnnotationMemberDeclaration()
/external/javassist/src/main/javassist/tools/rmi/
DStubGenerator.java28 import javassist.CtMethod;
29 import javassist.CtMethod.ConstParameter;
63 private CtMethod forwardMethod;
64 private CtMethod forwardStaticMethod;
213 CtMethod wmethod; in addMethods()
220 CtMethod body; in addMethods()
/external/javassist/src/main/javassist/bytecode/analysis/
DFramePrinter.java21 import javassist.CtMethod;
59 CtMethod[] methods = clazz.getDeclaredMethods(); in print()
65 private String getMethodString(CtMethod method) { in getMethodString()
78 public void print(CtMethod method) { in print()

123