Home
last modified time | relevance | path

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

123

/external/turbine/java/com/google/turbine/bytecode/
DClassReader.java23 import com.google.turbine.bytecode.ClassFile.AnnotationInfo;
24 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
25 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineAnnotationValu…
26 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
27 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue;
28 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
29 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo;
30 import com.google.turbine.bytecode.ClassFile.ModuleInfo;
31 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo;
32 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.java40 public static byte[] writeClass(ClassFile classfile) { in writeClass()
51 for (ClassFile.FieldInfo f : classfile.fields()) { in writeClass()
55 for (ClassFile.MethodInfo m : classfile.methods()) { in writeClass()
63 ConstantPool pool, ByteArrayDataOutput output, ClassFile.MethodInfo method) { in writeMethod()
71 ConstantPool pool, ByteArrayDataOutput output, ClassFile.FieldInfo field) { in writeField()
118 ConstantPool pool, ByteArrayDataOutput body, ClassFile classfile) { in finishClass()
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;
62 final List<ClassFile.InnerClass> inners;
64 public InnerClasses(List<ClassFile.InnerClass> inners) { in InnerClasses()
DAttributeWriter.java28 import com.google.turbine.bytecode.ClassFile.AnnotationInfo;
29 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo;
30 import com.google.turbine.bytecode.ClassFile.ModuleInfo;
31 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo;
32 import com.google.turbine.bytecode.ClassFile.ModuleInfo.OpenInfo;
33 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ProvideInfo;
34 import com.google.turbine.bytecode.ClassFile.ModuleInfo.RequireInfo;
35 import com.google.turbine.bytecode.ClassFile.ModuleInfo.UseInfo;
36 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo;
97 for (ClassFile.InnerClass inner : attribute.inners) { in writeInnerClasses()
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()
52 static List<Attribute> methodAttributes(ClassFile.MethodInfo method) { in methodAttributes()
73 static List<Attribute> fieldAttributes(ClassFile.FieldInfo field) { in fieldAttributes()
/external/turbine/javatests/com/google/turbine/bytecode/
DClassReaderTest.java24 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
25 import com.google.turbine.bytecode.ClassFile.ModuleInfo;
26 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ExportInfo;
27 import com.google.turbine.bytecode.ClassFile.ModuleInfo.OpenInfo;
28 import com.google.turbine.bytecode.ClassFile.ModuleInfo.ProvideInfo;
29 import com.google.turbine.bytecode.ClassFile.ModuleInfo.RequireInfo;
71 ClassFile classFile = com.google.turbine.bytecode.ClassReader.read(null, bytes); in methods()
82 ClassFile.MethodInfo f = classFile.methods().get(0); in methods()
92 ClassFile.MethodInfo g = classFile.methods().get(1); in methods()
98 ClassFile.MethodInfo h = classFile.methods().get(2); in methods()
[all …]
/external/turbine/java/com/google/turbine/lower/
DLower.java48 import com.google.turbine.bytecode.ClassFile;
49 import com.google.turbine.bytecode.ClassFile.AnnotationInfo;
50 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
51 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo;
52 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo;
53 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.Target;
54 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TargetType;
55 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.ThrowsTarget;
56 import com.google.turbine.bytecode.ClassFile.TypeAnnotationInfo.TypePath;
163 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.java37 import com.google.turbine.bytecode.ClassFile;
38 import com.google.turbine.bytecode.ClassFile.AnnotationInfo;
39 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
40 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue;
41 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
42 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
43 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.Kind;
44 import com.google.turbine.bytecode.ClassFile.MethodInfo.ParameterInfo;
76 private final Supplier<ClassFile> classFile;
89 new Supplier<ClassFile>() { in BytecodeBoundClass()
[all …]
DBytecodeBinder.java28 import com.google.turbine.bytecode.ClassFile;
29 import com.google.turbine.bytecode.ClassFile.AnnotationInfo;
30 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue;
31 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ArrayValue;
32 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstTurbineClassValue;
33 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.ConstValue;
34 import com.google.turbine.bytecode.ClassFile.AnnotationInfo.ElementValue.EnumConstValue;
202 ClassFile classFile = ClassReader.read(path, bytes.get()); in bindModuleInfo()
203 ClassFile.ModuleInfo module = classFile.module(); in bindModuleInfo()
/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;
65 public static ClassFile trimClass(ClassFile cf) { in trimClass()
83 return new ClassFile( in trimClass()
/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()
DCtNewClass.java22 import javassist.bytecode.ClassFile;
39 classfile = new ClassFile(isInterface, name, superName); in CtNewClass()
/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/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/
DCodeAnalyzerTest.java22 ClassFile cf = new ClassFile(new DataInputStream(is)); in test()
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()

123