Home
last modified time | relevance | path

Searched refs:CtNewMethod (Results 1 – 20 of 20) sorted by relevance

/external/javassist/src/test/javassist/
DJvstTest2.java77 CtMethod m = CtNewMethod.make( in testStaticMember()
82 m = CtNewMethod.make( in testStaticMember()
87 m = CtNewMethod.make( in testStaticMember()
93 m = CtNewMethod.make( in testStaticMember()
98 m = CtNewMethod.make( in testStaticMember()
103 m = CtNewMethod.make( in testStaticMember()
121 cc.addMethod(CtNewMethod.make( in testStaticMember2()
128 cc.addMethod(CtNewMethod.make( in testStaticMember2()
135 cc.addMethod(CtNewMethod.make( in testStaticMember2()
143 cc.addMethod(CtNewMethod.make( in testStaticMember2()
[all …]
DSetterTest.java32 clazz.addMethod(CtNewMethod.getter("isBroken", field)); in testFieldGetter()
49 clazz.addMethod(CtNewMethod.getter("isBroken", field)); in testFieldGetterSetter()
50 clazz.addMethod(CtNewMethod.setter("setBroken", field)); in testFieldGetterSetter()
70 clazz.addMethod(CtNewMethod.getter("isBroken", field)); in testStaticFieldGetter()
88 clazz.addMethod(CtNewMethod.getter("isBroken", field)); in testStaticFieldGetterSetter()
89 clazz.addMethod(CtNewMethod.setter("setBroken", field)); in testStaticFieldGetterSetter()
DJvstTest5.java26 … CtMethod m = CtNewMethod.make("public static int run(){ return $class.getName().length(); }", cc); in testDollarClassInStaticMethod()
28 m = CtNewMethod.make("public int run2(){ return $class.getName().length(); }", cc); in testDollarClassInStaticMethod()
38 …CtMethod m = CtNewMethod.make("public int run(){ return test5.DefaultMethodIntf.super.foo(); }", c… in testSuperDefaultMethodCall()
40 m = CtNewMethod.make("public int run2(){ return test5.DefaultMethodIntf.baz(); }", cc); in testSuperDefaultMethodCall()
42 … m = CtNewMethod.make("public int run3(){ return test5.DefaultMethodIntf.super.baz(); }", cc); in testSuperDefaultMethodCall()
81 CtMethod make = CtNewMethod.make(src, ctClass); in testJIRA246b()
182 cc.addMethod(CtNewMethod.make( in testJIRA250()
186 cc.addMethod(CtNewMethod.make("public int run() { getBar(); return 1; }", cc)); in testJIRA250()
254 cc.addMethod(CtNewMethod.make("static int foo() { return 1; }", cc)); in testAddDefaultMethod()
255 cc.addMethod(CtNewMethod.make("public static int foo1() { return 1; }", cc)); in testAddDefaultMethod()
[all …]
DJvstTest.java295 CtMethod m1 = CtNewMethod.make( in testProceed()
298 CtMethod m2 = CtNewMethod.make( in testProceed()
301 CtMethod m3 = CtNewMethod.make( in testProceed()
306 CtMethod m4 = CtNewMethod.make( in testProceed()
362 CtMethod m2 = CtNewMethod.copy(m1, cc, null); in testProceed3()
423 cc.addMethod(CtNewMethod.make(CtClass.voidType, "m1", in testSetConsBody()
425 cc.addMethod(CtNewMethod.make(CtClass.intType, "m2", in testSetConsBody()
427 cc.addMethod(CtNewMethod.make(CtClass.byteType, "m3", in testSetConsBody()
429 cc.addMethod(CtNewMethod.make(CtClass.longType, "m4", in testSetConsBody()
431 cc.addMethod(CtNewMethod.make(CtClass.floatType, "m5", in testSetConsBody()
[all …]
DJvstTest4.java404 CtNewMethod.make("public String foox(){return test4.MakeMethod.foo();}", ctClass); in testMakeMethod()
405 CtNewMethod.make("public String foo(){return test4.MakeMethod.foo();}", ctClass); in testMakeMethod()
554 cc.addMethod(CtNewMethod.make( in testImportPac()
562 cc.addMethod(CtNewMethod.make( in testImportPac()
571 cc.addMethod(CtNewMethod.make( in testLength()
576 cc.addMethod(CtNewMethod.make( in testLength()
581 cc.addMethod(CtNewMethod.make( in testLength()
789 CtMethod m = CtNewMethod.make("public Object get(){return value;}", cc); in testGenericSignature()
795 CtMethod m2 = CtNewMethod.make("public void set(Object v){value = v;}", cc); in testGenericSignature()
928 cc.addMethod(CtNewMethod.make( in testJIRA188()
[all …]
DHotswapTest.java32 clazz.addMethod(CtNewMethod.make("public int foo() { return 2; }", clazz)); in testHotswap()
DLoaderTestByRandall.java74 CtMethod newMethod = CtNewMethod.make(CtClassType.voidType, in testLoadBadCodeModification()
DJvstTest3.java150 CtMethod m2 = CtNewMethod.make( in testInnerClassMethod()
426 CtMethod m1 = CtNewMethod.make( in testMethodLookup()
667 CtMethod m1 = CtNewMethod.make( in testPackageName()
680 CtMethod m1 = CtNewMethod.make( in testErasure()
1109 ctc.addMethod(CtNewMethod.make(sb.toString(), ctc)); in test67()
/external/javassist/sample/vector/
DVectorAssistant.java97 vec.addMethod(CtNewMethod.copy(addmethod, "add", vec, map)); in makeSubclass()
98 vec.addMethod(CtNewMethod.copy(atmethod, "at", vec, map)); in makeSubclass()
122 = CtNewMethod.wrapped(CtClass.voidType, "add", args1, in makeSubclass2()
125 m = CtNewMethod.wrapped(type, "at", args2, in makeSubclass2()
/external/javassist/src/main/javassist/tools/reflect/
DReflection.java26 import javassist.CtNewMethod;
278 clazz.addMethod(CtNewMethod.getter(metaobjectGetter, f)); in modifyClassfile()
279 clazz.addMethod(CtNewMethod.setter(metaobjectSetter, f)); in modifyClassfile()
288 clazz.addMethod(CtNewMethod.getter(classobjectAccessor, f)); in modifyClassfile()
330 m2 = CtNewMethod.delegator(findOriginal(m, dontSearch), clazz); in processMethods0()
344 = CtNewMethod.wrapped(m.getReturnType(), name, in processMethods0()
383 = CtNewMethod.wrapped(ftype, readPrefix + name, in processFields()
392 wmethod = CtNewMethod.wrapped(CtClass.voidType, in processFields()
/external/javassist/src/test/test/javassist/proxy/
DProxyCacheGCTest.java71 … CtMethod targetMethod = CtNewMethod.make("public Object test() { return this; }", ctTargetClass); in createProxy()
80 …CtMethod handlerInvoke = CtNewMethod.make("public Object invoke(Object self, java.lang.reflect.Met… in createProxy()
87 …CtMethod filterIsHandled = CtNewMethod.make("public boolean isHandled(java.lang.reflect.Method m) … in createProxy()
/external/javassist/src/main/javassist/tools/rmi/
DStubGenerator.java31 import javassist.CtNewMethod;
164 proxy.addMethod(CtNewMethod.getter(accessorObjectId, f)); in produceProxyClass()
227 = CtNewMethod.wrapped(toCtClass(m.getReturnType()), in addMethods()
/external/javassist/sample/
DTest.java38 CtMethod gMethod = CtNewMethod.copy(fMethod, "g", cc, null); in main()
/external/javassist/sample/evolve/
DEvolution.java135 CtMethod wm = CtNewMethod.wrapped(absClass, handlerMethod, c in makeAbstractClass()
152 CtMethod m2 = CtNewMethod.abstractMethod(m.getReturnType(), in makeAbstractClass()
/external/javassist/src/test/test3/
DEnhancer.java98 CtMethod delegator = CtNewMethod.delegator(m, thisClass); in override()
117 CtMethod m2 = CtNewMethod.make(m.getReturnType(), in makeMethod()
/external/javassist/src/main/javassist/
DCtMethod.java140 return CtNewMethod.make(src, declaring); in make()
DCtNewMethod.java35 public class CtNewMethod { class
/external/javassist/src/test/javassist/bytecode/
DInsertGap0.java216 CtNewMethod.make( in addMethod()
DBytecodeTest.java103 CtMethod m = CtNewMethod.abstractMethod(CtClass.intType, "test", in test2byteLocalVar()
418 cc.addMethod(CtNewMethod.make("public int bar() { return foo(); }", cc)); in testAddClassInfo()
DStackMapTest.java17 import javassist.CtNewMethod;