Lines Matching refs:JavaSource

61     static class JavaSource extends SimpleJavaFileObject {  class in TreeEndPosTest
67 private JavaSource(String filename, String source) { in JavaSource() method in TreeEndPosTest.JavaSource
77 static JavaSource createJavaSource(String preamble, String body, in createJavaSource()
79 JavaSource js = createJavaSource(preamble, body, postamble, -1, -1); in createJavaSource()
85 static JavaSource createJavaSource(String body, String expected) { in createJavaSource()
89 private static JavaSource createJavaSource(String preamble, String body, in createJavaSource()
104 JavaSource js = new JavaSource(name + ".java", code.toString()); in createJavaSource()
110 static JavaSource createFullJavaSource(String code) { in createFullJavaSource()
113 JavaSource js = new JavaSource(name + ".java", parts[0] + parts[1] + parts[2]); in createFullJavaSource()
130 compile(JavaSource.createJavaSource("Object o = new A().new BT(); class A { }", in testUninitializedVariable()
134 compile(JavaSource.createJavaSource("@Foo(\"vvvv\")", in testMissingAnnotationValue()
139 compile(JavaSource.createJavaSource("@Foo(value=\"vvvv\")", in testUnresolvableAnnotationAttribute()
144 … compile(JavaSource.createJavaSource("private static final String Foo; public void bar() { }", in testFinalVariableWithDefaultConstructor()
149 …compile(JavaSource.createJavaSource("public Bug (){} private static final String Foo; public void … in testFinalVariableWithConstructor()
154 treeSpan(JavaSource.createFullJavaSource("|class X |")); in testWholeTextSpan()
157 static void compile(JavaSource src) throws IOException { in compile()
194 static void treeSpan(JavaSource src) throws IOException { in treeSpan()