/external/javassist/src/main/javassist/bytecode/analysis/ |
D | Type.java | 23 import javassist.CtClass; 42 private final CtClass clazz; 45 private static final Map<CtClass,Type> prims = new IdentityHashMap<CtClass,Type>(); 47 public static final Type DOUBLE = new Type(CtClass.doubleType); 49 public static final Type BOOLEAN = new Type(CtClass.booleanType); 51 public static final Type LONG = new Type(CtClass.longType); 53 public static final Type CHAR = new Type(CtClass.charType); 55 public static final Type BYTE = new Type(CtClass.byteType); 57 public static final Type SHORT = new Type(CtClass.shortType); 59 public static final Type INTEGER = new Type(CtClass.intType); [all …]
|
D | MultiType.java | 21 import javassist.CtClass; 49 private Map<String,CtClass> interfaces; 55 public MultiType(Map<String,CtClass> interfaces) { in MultiType() 59 public MultiType(Map<String,CtClass> interfaces, Type potentialClass) { in MultiType() 70 public CtClass getCtClass() { in getCtClass() 126 Map<String,CtClass> map = mergeMultiAndSingle(this, type); in isAssignableTo() 181 private Map<String,CtClass> getAllMultiInterfaces(MultiType type) { in getAllMultiInterfaces() 182 Map<String,CtClass> map = new HashMap<String,CtClass>(); in getAllMultiInterfaces() 184 for (CtClass intf:type.interfaces.values()) { in getAllMultiInterfaces() 193 private Map<String,CtClass> mergeMultiInterfaces(MultiType type1, MultiType type2) { in mergeMultiInterfaces() [all …]
|
/external/javassist/src/main/javassist/ |
D | ClassPool.java | 163 CtClass[] pt = CtClass.primitiveTypes; in ClassPool() 216 protected CtClass getCached(String classname) { in getCached() 217 return (CtClass)classes.get(classname); in getCached() 227 protected void cacheCtClass(String classname, CtClass c, boolean dynamic) { in cacheCtClass() 238 protected CtClass removeCached(String classname) { in removeCached() 239 return (CtClass)classes.remove(classname); in removeCached() 258 ((CtClass)e.nextElement()).compress(); in compress() 368 public CtClass getAndRename(String orgName, String newName) in getAndRename() 371 CtClass clazz = get0(orgName, false); in getAndRename() 388 synchronized void classNameChanged(String oldname, CtClass clazz) { in classNameChanged() [all …]
|
D | CtField.java | 68 public CtField(CtClass type, String name, CtClass declaring) in CtField() 91 public CtField(CtField src, CtClass declaring) in CtField() 104 private CtField(String typeDesc, String name, CtClass clazz) in CtField() 116 CtField(FieldInfo fi, CtClass clazz) { in CtField() 163 public static CtField make(String src, CtClass declaring) in make() 212 public CtClass getDeclaringClass() { in getDeclaringClass() 387 public CtClass getType() throws NotFoundException { in getType() 406 public void setType(CtClass clazz) { in setType() 589 public static Initializer byNew(CtClass objectType) { in byNew() 615 public static Initializer byNew(CtClass objectType, in byNew() [all …]
|
D | CtNewConstructor.java | 66 public static CtConstructor make(String src, CtClass declaring) in make() 96 public static CtConstructor make(CtClass[] parameters, in make() 97 CtClass[] exceptions, in make() 98 String body, CtClass declaring) in make() 126 public static CtConstructor copy(CtConstructor c, CtClass declaring, in copy() 137 public static CtConstructor defaultConstructor(CtClass declaring) in defaultConstructor() 140 CtConstructor cons = new CtConstructor((CtClass[])null, declaring); in defaultConstructor() 178 public static CtConstructor skeleton(CtClass[] parameters, in skeleton() 179 CtClass[] exceptions, CtClass declaring) in skeleton() 197 public static CtConstructor make(CtClass[] parameters, in make() [all …]
|
D | CtNewMethod.java | 47 public static CtMethod make(String src, CtClass declaring) in make() 70 public static CtMethod make(String src, CtClass declaring, in make() 105 public static CtMethod make(CtClass returnType, in make() 106 String mname, CtClass[] parameters, in make() 107 CtClass[] exceptions, in make() 108 String body, CtClass declaring) in make() 132 public static CtMethod make(int modifiers, CtClass returnType, in make() 133 String mname, CtClass[] parameters, in make() 134 CtClass[] exceptions, in make() 135 String body, CtClass declaring) in make() [all …]
|
D | CtClass.java | 51 public abstract class CtClass { class 82 System.out.println("Javassist version " + CtClass.version); in main() 93 public static CtClass booleanType; 99 public static CtClass charType; 105 public static CtClass byteType; 111 public static CtClass shortType; 117 public static CtClass intType; 123 public static CtClass longType; 129 public static CtClass floatType; 135 public static CtClass doubleType; [all …]
|
D | CtNewWrappedMethod.java | 34 public static CtMethod wrapped(CtClass returnType, String mname, in wrapped() 35 CtClass[] parameterTypes, in wrapped() 36 CtClass[] exceptionTypes, in wrapped() 38 CtClass declaring) in wrapped() 59 static Bytecode makeBody(CtClass clazz, ClassFile classfile, in makeBody() 61 CtClass[] parameters, in makeBody() 62 CtClass returnType, in makeBody() 78 protected static int makeBody0(CtClass clazz, ClassFile classfile, in makeBody0() 80 boolean isStatic, CtClass[] parameters, in makeBody0() 81 CtClass returnType, ConstParameter cparam, in makeBody0() [all …]
|
/external/javassist/sample/vector/ |
D | VectorAssistant.java | 52 public CtClass[] assist(ClassPool pool, String vec, String[] args) in assist() 60 CtClass subclass; in assist() 61 CtClass elementType = pool.get(args[0]); in assist() 67 CtClass[] results = { subclass, pool.get(vec) }; in assist() 84 public CtClass makeSubclass(ClassPool pool, CtClass type) in makeSubclass() 87 CtClass vec = pool.makeClass(makeClassName(type)); in makeSubclass() 90 CtClass c = pool.get("sample.vector.Sample"); in makeSubclass() 109 public CtClass makeSubclass2(ClassPool pool, CtClass type) in makeSubclass2() 112 CtClass vec = pool.makeClass(makeClassName(type)); in makeSubclass2() 115 CtClass c = pool.get("sample.vector.Sample2"); in makeSubclass2() [all …]
|
/external/javassist/src/test/javassist/ |
D | JvstTest2.java | 22 CtClass cc = sloader.get("test2.InsertAt"); in testInsertAt() 47 CtClass cc = sloader.get("test2.InsertLocal"); in testInsertLocal() 76 CtClass cc = sloader.get("test2.StaticMember"); in testStaticMember() 119 CtClass cc = sloader.get("test2.StaticMember2"); in testStaticMember2() 157 CtClass cc = sloader.get("test2.SuperCall"); in testSuperCall() 170 CtClass cc = sloader.makeClass("test2.SetSuper"); in testSetSuper() 171 CtClass cc2 = sloader.makeClass("test2.SetSuperParent"); in testSetSuper() 172 CtClass intf = sloader.makeInterface("test2.SetSuperIntf"); in testSetSuper() 173 CtClass remote = sloader.get("java.rmi.Remote"); in testSetSuper() 176 cc.setInterfaces(new CtClass[] { intf }); in testSetSuper() [all …]
|
D | JvstTest3.java | 15 CtClass cc = sloader.get("test3.AnnoTest"); in testAnnotation() 32 CtClass cc = sloader.get("test3.AnnoTest2"); in testAnnotation2() 49 CtClass cc = sloader.get("test3.AnnoTest3"); in testAnnotation3() 65 CtClass cc = sloader.get("test3.AnnoTest4"); in testAnnotation4() 87 CtClass cc = sloader.get("test3.AnnoTest5"); in testAnnotation5() 98 CtClass cc = sloader.get("test3.AnnoTest6"); in testAnnotation6() 146 CtClass cc = sloader.get("test3.InnerMethod"); in testInnerClassMethod() 165 CtClass cc = sloader.get("test3.CheckModify"); in testCheckModifyAndPruned() 166 cc.addField(new CtField(CtClass.intType, "j", cc)); in testCheckModifyAndPruned() 180 CtClass cc = sloader.get("test3.ReplaceNew"); in testReplaceNew() [all …]
|
D | JvstTest.java | 44 CtClass cc = sloader.get("test1.Freeze"); in testDefreeze() 102 CtClass cc = sloader.get("test1.Subtype"); in testSubtype() 113 CtClass cc = pool.makeClass("test1.Point"); in testClassPoolGet() 114 CtClass cc1 = pool.get("test1.Point"); // cc1 is identical to cc. in testClassPoolGet() 116 CtClass cc2 = pool.get("test1.Pair"); // cc2 is identical to cc. in testClassPoolGet() 117 CtClass cc3 = pool.get("test1.Point"); // cc3 is not identical to cc. in testClassPoolGet() 133 CtClass cc = sloader.get("test1.FieldInit"); in testFieldInit() 134 CtField f1 = new CtField(CtClass.intType, "f1", cc); in testFieldInit() 162 CtClass cc = sloader.get("test1.FieldInit2"); in testFieldInit2() 163 CtField f = new CtField(CtClass.intType, "f1", cc); in testFieldInit2() [all …]
|
D | JvstTest4.java | 24 CtClass cc = sloader.get("test4.LocalVars"); in testInsertLocalVars() 40 CtClass cc = sloader.get("test4.CodeConv"); in testCodeConv() 54 CtClass cc = sloader.get("test4.CodeConv2"); in testCodeConv2() 70 CtClass cc = sloader.get("test4.GapSwitch"); in testInsGap() 103 CtClass cc = sloader.get("test4.Anno"); in testAnnotationCheck() 128 CtClass cc = sloader.get("test4.Rename"); in testRename() 132 CtClass cc2 = sloader.get("test4.IRename"); in testRename() 142 CtClass cc = sloader.get("test4.Signature"); in testRename2() 152 CtClass cc = sloader.getCtClass("test4.JIRA93"); in testJIRA93() 155 m.addLocalVariable("bar", CtClass.longType); in testJIRA93() [all …]
|
/external/javassist/src/main/javassist/bytecode/ |
D | Bytecode.java | 19 import javassist.CtClass; 122 public static final CtClass THIS = ConstPool.THIS; 260 public void setMaxLocals(boolean isStatic, CtClass[] params, in setMaxLocals() 266 CtClass doubleType = CtClass.doubleType; in setMaxLocals() 267 CtClass longType = CtClass.longType; in setMaxLocals() 270 CtClass type = params[i]; in setMaxLocals() 292 int handler, CtClass type) { in addExceptionHandler() 527 public void addConstZero(CtClass type) { in addConstZero() 529 if (type == CtClass.longType) in addConstZero() 531 else if (type == CtClass.floatType) in addConstZero() [all …]
|
D | Descriptor.java | 22 import javassist.CtClass; 60 public static String toJvmName(CtClass clazz) { in toJvmName() 239 public static String of(CtClass type) { in of() 245 private static void toDescriptor(StringBuffer desc, CtClass type) { in toDescriptor() 275 public static String ofConstructor(CtClass[] paramTypes) { in ofConstructor() 276 return ofMethod(CtClass.voidType, paramTypes); in ofConstructor() 286 public static String ofMethod(CtClass returnType, CtClass[] paramTypes) { in ofMethod() 309 public static String ofParameters(CtClass[] paramTypes) { in ofParameters() 360 public static String appendParameter(CtClass type, String descriptor) { in appendParameter() 379 public static String insertParameter(CtClass type, in insertParameter() [all …]
|
/external/javassist/src/main/javassist/tools/rmi/ |
D | StubGenerator.java | 25 import javassist.CtClass; 62 private Map<String,CtClass> proxyClasses; 66 private CtClass[] proxyConstructorParamTypes; 67 private CtClass[] interfacesForProxy; 68 private CtClass[] exceptionForProxy; 74 proxyClasses = new Hashtable<String,CtClass>(); in StubGenerator() 86 CtClass c = pool.get(sampleClass); in start() 97 = new CtClass[] { pool.get("javassist.tools.rmi.RemoteException") }; in start() 133 CtClass ctclazz = produceProxyClass(classPool.get(classname), in makeProxyClass() 140 private CtClass produceProxyClass(CtClass orgclass, Class<?> orgRtClass) in produceProxyClass() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_javassistmodel_JavassistFactory.txt | 1 Line 33) ctClazz.isArray() ==> javassist.CtClass.isArray() 2 …rser.symbolsolver.javassistmodel.JavassistFactory.typeUsageFor(javassist.CtClass, com.github.javap… 3 Line 34) ctClazz.getComponentType() ==> javassist.CtClass.getComponentType() 4 Line 35) ctClazz.isPrimitive() ==> javassist.CtClass.isPrimitive() 6 Line 36) ctClazz.getName() ==> javassist.CtClass.getName() 8 Line 39) ctClazz.getName() ==> javassist.CtClass.getName() 9 Line 42) ctClazz.isInterface() ==> javassist.CtClass.isInterface() 10 Line 45) ctClazz.isEnum() ==> javassist.CtClass.isEnum() 11 Line 59) ctClazz.isInterface() ==> javassist.CtClass.isInterface() 12 Line 61) ctClazz.isEnum() ==> javassist.CtClass.isEnum() [all …]
|
/external/javassist/src/main/javassist/scopedpool/ |
D | ScopedClassPool.java | 25 import javassist.CtClass; 44 protected Map<String,CtClass> softcache = new SoftValueHashMap<String,CtClass>(); 143 public synchronized void soften(CtClass clazz) { in soften() 167 protected CtClass getCached(String classname) { in getCached() 168 CtClass clazz = getCachedLocally(classname); in getCached() 221 protected void cacheCtClass(String classname, CtClass c, boolean dynamic) { in cacheCtClass() 238 public void lockInCache(CtClass c) { in lockInCache() 249 protected CtClass getCachedLocally(String classname) { in getCachedLocally() 250 CtClass cached = (CtClass)classes.get(classname); in getCachedLocally() 254 return (CtClass)softcache.get(classname); in getCachedLocally() [all …]
|
/external/javassist/src/test/test/javassist/bytecode/analysis/ |
D | ScannerTest.java | 7 import javassist.CtClass; 28 CtClass clazz = pool.get("test.ScannerTest$GeneratedTest"); in testNestedFinally() 106 CtClass clazz = pool.makeClass("test.ScannerTest$GeneratedTest"); in generate() 107 … CtMethod method = new CtMethod(CtClass.voidType, "doit", new CtClass[] {CtClass.intType}, clazz); in generate() 110 CtClass stringClass = pool.get("java.lang.String"); in generate() 114 … /* 3 */ code.addInvokevirtual(clazz, "println", CtClass.voidType, new CtClass[] {stringClass}); in generate() 117 … /* 9 */ code.addInvokevirtual(clazz, "println", CtClass.voidType, new CtClass[] {stringClass}); in generate() 138 … /* 63 */ code.addInvokevirtual(clazz, "println", CtClass.voidType, new CtClass[] {stringClass}); in generate() 147 … /* 82 */ code.addInvokevirtual(clazz, "println", CtClass.voidType, new CtClass[] {stringClass}); in generate() 156 … /* 101 */ code.addInvokevirtual(clazz, "println", CtClass.voidType, new CtClass[] {stringClass}); in generate() [all …]
|
D | AnalyzerTest.java | 8 import javassist.CtClass; 30 CtClass clazz = pool.get(getClass().getName() + "$Dummy"); in testCommonSupperArray() 37 CtClass clazz = pool.get(getClass().getName() + "$Dummy"); in testCommonInterfaceArray() 112 private static void verifyArrayLoad(CtClass clazz, CtMethod method, String component) in verifyArrayLoad() 197 CtClass clazz = pool.makeClass(getClass().getName() + "$Generated0"); in generateDeadCode() 198 CtClass stringClass = pool.get("java.lang.String"); in generateDeadCode() 199 CtMethod method = new CtMethod(stringClass, "foo", new CtClass[0], clazz); in generateDeadCode() 207 … /* 6 */ code.addInvokestatic(stringClass, "valueOf", stringClass, new CtClass[]{CtClass.intType}); in generateDeadCode() 216 CtClass clazz = pool.makeClass(getClass().getName() + "$Generated4"); in generateInvalidCode() 217 CtClass intClass = pool.get("java.lang.Integer"); in generateInvalidCode() [all …]
|
/external/javassist/src/main/javassist/expr/ |
D | NewArray.java | 21 import javassist.CtClass; 48 protected NewArray(int pos, CodeIterator i, CtClass declaring, in NewArray() 89 public CtClass[] mayThrow() { in mayThrow() 99 public CtClass getComponentType() throws NotFoundException { in getComponentType() 116 CtClass getPrimitiveType(int atype) { in getPrimitiveType() 119 return CtClass.booleanType; in getPrimitiveType() 121 return CtClass.charType; in getPrimitiveType() 123 return CtClass.floatType; in getPrimitiveType() 125 return CtClass.doubleType; in getPrimitiveType() 127 return CtClass.byteType; in getPrimitiveType() [all …]
|
D | FieldAccess.java | 22 import javassist.CtClass; 47 protected FieldAccess(int pos, CodeIterator i, CtClass declaring, in FieldAccess() 109 private CtClass getCtClass() throws NotFoundException { in getCtClass() 133 CtClass cc = getCtClass(); in getField() 146 public CtClass[] mayThrow() { in mayThrow() 183 CtClass[] params; in replace() 184 CtClass retType; in replace() 185 CtClass fieldType in replace() 190 params = new CtClass[0]; in replace() 194 params = new CtClass[1]; in replace() [all …]
|
/external/javassist/src/main/javassist/compiler/ |
D | MemberResolver.java | 28 import javassist.CtClass; 58 public CtClass declaring; 62 public Method(CtClass c, MethodInfo i, int n) { in Method() 77 public Method lookupMethod(CtClass clazz, CtClass currentClass, MethodInfo current, in lookupMethod() 104 private Method lookupMethod(CtClass clazz, String methodName, in lookupMethod() 142 CtClass pclazz = clazz.getSuperclass(); in lookupMethod() 154 CtClass[] ifs = clazz.getInterfaces(); in lookupMethod() 155 for (CtClass intf:ifs) { in lookupMethod() 165 CtClass pclazz = clazz.getSuperclass(); in lookupMethod() 243 CtClass clazz = lookupClassByJvmName(argClassNames[n]); in compareSignature() [all …]
|
/external/javassist/src/test/scoped/ |
D | ScopedRepositoryTestCase.java | 28 import javassist.CtClass; 62 CtClass clazz = pool1.get("scoped.jar1.TestClass1"); in testScopedClasses() 71 CtClass clazz = getCtClass(UnscopedAnnotationUsage.class); in testUnscopedAnnotationUsage() 77 CtClass clazz = getCtClass(UnscopedAnnotationDefaultUsage.class); in testUnscopedAnnotationDefaultUsage() 84 CtClass clazz = getCtClass("scoped.jar1.ScopedAnnotationUsage", cl); in testScopedAnnotationUsage() 91 CtClass clazz = getCtClass("scoped.jar1.ScopedAnnotationDefaultUsage", cl); in testScopedAnnotationDefaultUsage() 98 CtClass clazz = getCtClass("scoped.jar1.FullyScopedAnnotationUsage", cl); in testFullyScopedAnnotationUsage() 105 CtClass clazz = getCtClass("scoped.jar1.FullyScopedAnnotationDefaultUsage", cl); in testFullyScopedAnnotationDefaultUsage() 138 protected CtClass getCtClass(Class<?> clazz) throws Exception in getCtClass() 143 protected CtClass getCtClass(String name, ClassLoader cl) throws Exception in getCtClass() [all …]
|
/external/javassist/src/main/javassist/tools/reflect/ |
D | Reflection.java | 22 import javassist.CtClass; 91 protected CtClass[] readParam; 122 CtClass c = classPool.get("javassist.tools.reflect.Sample"); in start() 129 = new CtClass[] { classPool.get("java.lang.Object") }; in start() 146 CtClass clazz = pool.get(classname); in onLoad() 215 public boolean makeReflective(CtClass clazz, in makeReflective() 216 CtClass metaobject, CtClass metaclass) in makeReflective() 242 private void registerReflectiveClass(CtClass clazz) { in registerReflectiveClass() 255 private boolean modifyClassfile(CtClass clazz, CtClass metaobject, in modifyClassfile() 256 CtClass metaclass) in modifyClassfile() [all …]
|