Home
last modified time | relevance | path

Searched refs:ClassFile (Results 1 – 25 of 53) sorted by relevance

123

/external/turbine/java/com/google/turbine/bytecode/
DClassReader.java25 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 …]
DAnnotationWriter.java21 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 …]
DClassWriter.java36 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()
DLowerAttributes.java26 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()
DAttribute.java20 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()
DAttributeWriter.java29 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/
DClassReaderTest.java25 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 …]
DClassWriterTest.java181 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/
DLower.java51 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/
DFactoryHelper.java28 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()
DDefinePackageHelper.java26 import javassist.bytecode.ClassFile;
139 = ClassFile.MAJOR_VERSION >= ClassFile.JAVA_9
140 ? new Java9() : ClassFile.MAJOR_VERSION >= ClassFile.JAVA_7
DDefineClassHelper.java27 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();
DProxyFactory.java43 import javassist.bytecode.ClassFile;
598 ClassFile cf = make(); in createClass3()
855 private ClassFile make() throws CannotCompileException { in make()
856 ClassFile cf = new ClassFile(false, classname, superName); in make()
1005 private static void setInterfaces(ClassFile cf, Class<?>[] interfaces, Class<?> proxyClass) { in setInterfaces()
1021 private static void addClassInitializer(ClassFile cf, ConstPool cp, in addClassInitializer()
1082 private static void addSetter(String classname, ClassFile cf, ConstPool cp) in addSetter()
1097 private static void addGetter(String classname, ClassFile cf, ConstPool cp) in addGetter()
1111 …private int overrideMethods(ClassFile cf, ConstPool cp, String className, List<Find2MethodsArgs> f… in overrideMethods()
1119 if (ClassFile.MAJOR_VERSION < ClassFile.JAVA_5 || !isBridge(e.getValue())) in overrideMethods()
[all …]
/external/turbine/java/com/google/turbine/binder/bytecode/
DBytecodeBoundClass.java36 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 …]
DBytecodeBinder.java30 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/apache-commons-bcel/src/main/java/org/apache/bcel/util/
DClassPath.java264 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/
DCtClassType.java41 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 …]
DCtNewWrappedMethod.java25 import javassist.bytecode.ClassFile;
59 static Bytecode makeBody(CtClass clazz, ClassFile classfile, in makeBody()
78 protected static int makeBody0(CtClass clazz, ClassFile classfile, in makeBody0()
144 ClassFile classfile, in addBodyMethod()
/external/dagger2/java/dagger/hilt/android/plugin/src/test/kotlin/
DTransformTest.kt20 import javassist.bytecode.ClassFile in <lambda>()
77 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
127 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
163 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
199 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
261 ClassFile(DataInputStream(fileInput)).let { classFile -> in <lambda>()
/external/turbine/java/com/google/turbine/deps/
DTransitive.java29 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/javassist/src/main/javassist/tools/
DDump.java23 import javassist.bytecode.ClassFile;
53 ClassFile w = new ClassFile(in); in main()
/external/javassist/src/main/javassist/compiler/
DAccessorMaker.java28 import javassist.bytecode.ClassFile;
62 ClassFile cf = clazz.getClassFile(); // turn on the modified flag. in getConstructor()
120 ClassFile cf = clazz.getClassFile(); // turn on the modified flag. in getMethodAccessor()
172 ClassFile cf = clazz.getClassFile(); // turn on the modified flag. in getFieldGetter()
223 ClassFile cf = clazz.getClassFile(); // turn on the modified flag. in getFieldSetter()
266 private String findAccessorName(ClassFile cf) { in findAccessorName()
/external/javassist/src/test/javassist/
DHotswapTest.java21 if (javassist.bytecode.ClassFile.MAJOR_VERSION in testHotswap()
22 >= javassist.bytecode.ClassFile.JAVA_9) in testHotswap()
/external/javassist/src/test/javassist/bytecode/
DBytecodeTest.java363 ClassFile cf = new ClassFile(new DataInputStream(fin)); in testAnnotations()
369 ClassFile cf2 = new ClassFile(false, "test1.AnnoTest", in testAnnotations()
383 ClassFile cf = new ClassFile(false, "test1.AnnoTest2", in testAnnotations2()
402 cf = new ClassFile(new DataInputStream(fin)); in testAnnotations2()
413 ClassFile cf = cc.getClassFile(); in testAddClassInfo()
529 ClassFile cf = new ClassFile(false, "Test", null); in testModifiers()
531 ClassFile cf2 = new ClassFile(true, "Test2", null); in testModifiers()
785 ClassFile cf = cc.getClassFile(); in testInvokeDynamic()
DCodeAnalyzerTest.java22 ClassFile cf = new ClassFile(new DataInputStream(is)); in test()

123