/external/ow2-asm/asm-test/src/test/java/org/objectweb/asm/test/ |
D | ClassFileTest.java | 26 ClassFile classFile = new ClassFile(PrecompiledClass.JDK3_ALL_INSTRUCTIONS.getBytes()); in testGetConstantPoolDump() 37 ClassFile classFile = new ClassFile(classParameter.getBytes()); in testNewInstance_validClass() 52 ClassFile classFile = new ClassFile(invalidClass.getBytes()); in testNewInstance_invalidClass() 69 Executable newInstance = () -> ClassFile.newInstance(className, classContent); in testStaticNewInstance_invalidClass() 99 ClassFile classFile1 = new ClassFile(PrecompiledClass.JDK3_ALL_INSTRUCTIONS.getBytes()); in testEquals() 100 ClassFile classFile2 = new ClassFile(PrecompiledClass.JDK5_ALL_INSTRUCTIONS.getBytes()); in testEquals() 114 ClassFile classFile = new ClassFile(precompiledClass.getBytes()); in testHashcode_validClass() 124 ClassFile classFile = new ClassFile(invalidClass.getBytes()); in testHashcode_invalidClass() 135 ClassFile classFile = new ClassFile(precompiledClass.getBytes()); in testToString_validClass() 145 ClassFile classFile = new ClassFile(invalidClass.getBytes()); in testToString_invalidClass()
|
/external/turbine/java/com/google/turbine/bytecode/ |
D | ClassReader.java | 25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 27 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineAnnotationValu… 28 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue; 29 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue; 30 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue; 31 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo; 32 import com.google.turbine.bytecode.ClassFile.ModuleInfo; 33 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo; 34 import com.google.turbine.bytecode.ClassFile.ModuleInfo.OpenInfo; [all …]
|
D | AnnotationWriter.java | 21 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 22 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 23 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue; 24 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineAnnotationValu… 25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue; 26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue; 27 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue; 28 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo; 29 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.FormalParameterTarget; 30 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.SuperTypeTarget; [all …]
|
D | ClassWriter.java | 36 public static byte[] writeClass(ClassFile classfile) { in writeClass() 47 for (ClassFile.FieldInfo f : classfile.fields()) { in writeClass() 51 for (ClassFile.MethodInfo m : classfile.methods()) { in writeClass() 59 ConstantPool pool, ByteArrayDataOutput output, ClassFile.MethodInfo method) { in writeMethod() 67 ConstantPool pool, ByteArrayDataOutput output, ClassFile.FieldInfo field) { in writeField() 114 ConstantPool pool, ByteArrayDataOutput body, ClassFile classfile) { in finishClass()
|
D | LowerAttributes.java | 26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 27 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo; 35 static List<Attribute> classAttributes(ClassFile classfile) { in classAttributes() 66 private static Attribute recordAttribute(ClassFile.RecordInfo record) { in recordAttribute() 68 for (ClassFile.RecordInfo.RecordComponentInfo component : record.recordComponents()) { in recordAttribute() 82 static List<Attribute> methodAttributes(ClassFile.MethodInfo method) { in methodAttributes() 103 static List<Attribute> fieldAttributes(ClassFile.FieldInfo field) { in fieldAttributes()
|
D | Attribute.java | 20 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 21 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo; 22 import com.google.turbine.bytecode.ClassFile.ModuleInfo; 23 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo; 67 final List<ClassFile.InnerClass> inners; 69 public InnerClasses(List<ClassFile.InnerClass> inners) { in InnerClasses()
|
D | AttributeWriter.java | 29 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 30 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo; 31 import com.google.turbine.bytecode.ClassFile.ModuleInfo; 32 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo; 33 import com.google.turbine.bytecode.ClassFile.ModuleInfo.OpenInfo; 34 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ProvideInfo; 35 import com.google.turbine.bytecode.ClassFile.ModuleInfo.RequireInfo; 36 import com.google.turbine.bytecode.ClassFile.ModuleInfo.UseInfo; 37 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo; 111 for (ClassFile.InnerClass inner : attribute.inners) { in writeInnerClasses()
|
/external/turbine/javatests/com/google/turbine/bytecode/ |
D | ClassReaderTest.java | 25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 26 import com.google.turbine.bytecode.ClassFile.ModuleInfo; 27 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo; 28 import com.google.turbine.bytecode.ClassFile.ModuleInfo.OpenInfo; 29 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ProvideInfo; 30 import com.google.turbine.bytecode.ClassFile.ModuleInfo.RequireInfo; 75 ClassFile classFile = com.google.turbine.bytecode.ClassReader.read(null, bytes); in methods() 86 ClassFile.MethodInfo f = classFile.methods().get(0); in methods() 96 ClassFile.MethodInfo g = classFile.methods().get(1); in methods() 102 ClassFile.MethodInfo h = classFile.methods().get(2); in methods() [all …]
|
D | ClassWriterTest.java | 181 ClassFile classFile = in record() 182 new ClassFile( in record() 198 /* record= */ new ClassFile.RecordInfo( in record() 200 new ClassFile.RecordInfo.RecordComponentInfo( in record() 205 new ClassFile.AnnotationInfo("LA;", true, ImmutableMap.of())), in record() 207 new ClassFile.TypeAnnotationInfo( in record() 208 ClassFile.TypeAnnotationInfo.TargetType.FIELD, in record() 209 ClassFile.TypeAnnotationInfo.EMPTY_TARGET, in record() 210 ClassFile.TypeAnnotationInfo.TypePath.root(), in record() 211 new ClassFile.AnnotationInfo("LA;", true, ImmutableMap.of())))), in record() [all …]
|
/external/turbine/java/com/google/turbine/lower/ |
D | Lower.java | 51 import com.google.turbine.bytecode.ClassFile; 52 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 53 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 54 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo; 55 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo; 56 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.Target; 57 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TargetType; 58 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.ThrowsTarget; 59 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TypePath; 174 ClassFile.ModuleInfo moduleInfo = lowerModule(module); in lower() [all …]
|
/external/javassist/src/main/javassist/util/proxy/ |
D | FactoryHelper.java | 28 import javassist.bytecode.ClassFile; 110 public static Class<?> toClass(ClassFile cf, ClassLoader loader) in toClass() 127 public static Class<?> toClass(ClassFile cf, Class<?> neighbor, in toClass() 150 public static Class<?> toClass(ClassFile cf, java.lang.invoke.MethodHandles.Lookup lookup) in toClass() 162 private static byte[] toBytecode(ClassFile cf) throws IOException { in toBytecode() 178 public static void writeFile(ClassFile cf, String directoryName) in writeFile() 188 private static void writeFile0(ClassFile cf, String directoryName) in writeFile0()
|
D | DefinePackageHelper.java | 26 import javassist.bytecode.ClassFile; 139 = ClassFile.MAJOR_VERSION >= ClassFile.JAVA_9 140 ? new Java9() : ClassFile.MAJOR_VERSION >= ClassFile.JAVA_7
|
D | DefineClassHelper.java | 27 import javassist.bytecode.ClassFile; 230 private static final Helper privileged = ClassFile.MAJOR_VERSION > ClassFile.JAVA_10 232 : ClassFile.MAJOR_VERSION >= ClassFile.JAVA_9 234 : ClassFile.MAJOR_VERSION >= ClassFile.JAVA_7 ? new Java7() : new JavaOther();
|
/external/turbine/java/com/google/turbine/binder/bytecode/ |
D | BytecodeBoundClass.java | 36 import com.google.turbine.bytecode.ClassFile; 37 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 38 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 39 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue; 40 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue; 41 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue; 42 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.Kind; 43 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo; 75 private final Supplier<ClassFile> classFile; 88 new Supplier<ClassFile>() { in BytecodeBoundClass() [all …]
|
D | BytecodeBinder.java | 30 import com.google.turbine.bytecode.ClassFile; 31 import com.google.turbine.bytecode.ClassFile.AnnotationInfo; 32 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue; 33 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue; 34 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue; 35 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue; 36 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue; 209 ClassFile classFile = ClassReader.read(path, bytes.get()); in bindModuleInfo() 210 ClassFile.ModuleInfo module = classFile.module(); in bindModuleInfo()
|
/external/ow2-asm/asm/src/test/java/org/objectweb/asm/ |
D | ClassWriterTest.java | 57 import org.objectweb.asm.test.ClassFile; 421 assertDoesNotThrow(() -> new ClassFile(classFile).newInstance()); in testToByteArray_computeFrames_mergeLongOrDouble() 456 assertTrue(new ClassFile(classFile).toString().contains("[[[[[[[[Ljava/lang/Number;")); in testToByteArray_computeFrames_highDimensionArrays() 501 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testReadAndWrite() 520 new ClassFile(classWriter.toByteArray()) in testReadAndWrite_skipCode() 538 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testReadAndWrite_copyPool() 555 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testReadAndWrite_expandFrames() 576 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testReadAndWrite_computeMaxs() 592 Executable newInstance = () -> new ClassFile(classWriter.toByteArray()).newInstance(); in testReadAndWrite_computeMaxs_newInstance() 625 assertEquals(new ClassFile(classFile), new ClassFile(newClassFile)); in testReadAndWrite_computeFrames() [all …]
|
D | ClassVisitorTest.java | 47 import org.objectweb.asm.test.ClassFile; 101 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testReadAndWrite_emptyVisitor() 122 new ClassFile(classWriter.toByteArray()), in testReadAndWrite_copyPool_changeMethodExceptions() 123 new ClassFile(classWriterWithCopyPool.toByteArray())); in testReadAndWrite_copyPool_changeMethodExceptions() 144 new ClassFile(classWriter.toByteArray()), in testReadAndWrite_copyPool_changeMethodDeprecatedFlag() 145 new ClassFile(classWriterWithCopyPool.toByteArray())); in testReadAndWrite_copyPool_changeMethodDeprecatedFlag() 166 new ClassFile(classWriter.toByteArray()), in testReadAndWrite_copyPool_changeMethodSyntheticFlag() 167 new ClassFile(classWriterWithCopyPool.toByteArray())); in testReadAndWrite_copyPool_changeMethodSyntheticFlag() 203 new ClassFile(classWriter.toByteArray()), new ClassFile(copyPoolClassWriter.toByteArray())); in testReadAndWrite_copyPool_changeClassVersionAndMethodSyntheticFlag() 233 new ClassFile(classWriter.toByteArray()), new ClassFile(copyPoolClassWriter.toByteArray())); in testReadAndWrite_copyPool_changeMethodDescriptor() [all …]
|
/external/dagger2/java/dagger/hilt/android/plugin/src/test/kotlin/ |
D | TransformTest.kt | 21 import javassist.bytecode.ClassFile in <lambda>() 78 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 128 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 164 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 200 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 262 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 375 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>() 387 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
|
/external/apache-commons-bcel/src/main/java/org/apache/bcel/util/ |
D | ClassPath.java | 264 public ClassFile getClassFile( final String name, final String suffix ) throws IOException { in getClassFile() 265 ClassFile cf = null; in getClassFile() 282 …private ClassFile getClassFileInternal(final String name, final String suffix) throws IOException { in getClassFileInternal() 285 final ClassFile cf = path.getClassFile(name, suffix); in getClassFileInternal() 300 public ClassFile getClassFile( final String name ) throws IOException { in getClassFile() 362 abstract ClassFile getClassFile( String name, String suffix ) throws IOException; in getClassFile() 369 public interface ClassFile { interface in ClassPath 429 ClassFile getClassFile( final String name, final String suffix ) throws IOException { in getClassFile() 432 return file.exists() ? new ClassFile() { in getClassFile() 506 ClassFile getClassFile( final String name, final String suffix ) throws IOException { [all …]
|
/external/javassist/src/main/javassist/ |
D | CtClassType.java | 41 import javassist.bytecode.ClassFile; 68 ClassFile classfile; 98 classfile = new ClassFile(new DataInputStream(ins)); in CtClassType() 102 CtClassType(ClassFile cf, ClassPool cp) { in CtClassType() 177 public ClassFile getClassFile2() { in getClassFile2() 181 public ClassFile getClassFile3(boolean doCompress) { in getClassFile3() 182 ClassFile cfile = classfile; in getClassFile3() 191 ClassFile cf = new ClassFile(new DataInputStream( in getClassFile3() 209 ClassFile cf = new ClassFile(new DataInputStream(fin)); in getClassFile3() 285 private synchronized ClassFile setClassFile(ClassFile cf) { in setClassFile() [all …]
|
/external/turbine/java/com/google/turbine/deps/ |
D | Transitive.java | 29 import com.google.turbine.bytecode.ClassFile; 30 import com.google.turbine.bytecode.ClassFile.FieldInfo; 31 import com.google.turbine.bytecode.ClassFile.InnerClass; 67 public static ClassFile trimClass(ClassFile cf, @Nullable String jarFile) { in trimClass() 91 return new ClassFile( in trimClass()
|
/external/ow2-asm/asm-tree/src/test/java/org/objectweb/asm/tree/ |
D | ClassNodeTest.java | 54 import org.objectweb.asm.test.ClassFile; 111 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testVisitAndAccept() 133 assertEquals(new ClassFile(classFile), new ClassFile(classWriter.toByteArray())); in testVisitAndAccept_cloneInstructions() 152 new ClassFile(expectedClassWriter.toByteArray()), new ClassFile(classWriter.toByteArray())); in testVisitAndAccept_removeMembersVisitor()
|
/external/javassist/src/main/javassist/tools/ |
D | Dump.java | 23 import javassist.bytecode.ClassFile; 53 ClassFile w = new ClassFile(in); in main()
|
/external/ow2-asm/benchmarks/src/jmh/java/org/objectweb/asm/benchmarks/ |
D | CojenGenerator.java | 32 import org.cojen.classfile.ClassFile; 49 ClassFile classFile = new ClassFile("HelloWorld"); in generateClass()
|
D | CsgBytecodeGenerator.java | 32 import com.claritysys.jvm.classfile.ClassFile; 45 ClassFile classFile = new ClassFile("HelloWorld", "java/lang/Object", "HelloWorld.java"); in generateClass()
|