File tree Expand file tree Collapse file tree
src/main/java/org/queenlang/transpiler Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2727 */
2828package org .queenlang .transpiler ;
2929
30- import com .github .javaparser .JavaParser ;
31- import com .github .javaparser .ParseResult ;
32- import com .github .javaparser .ast .CompilationUnit ;
33- import com .github .javaparser .printer .configuration .DefaultPrinterConfiguration ;
34- import org .queenlang .transpiler .nodes .body .CompilationUnitNode ;
3530import org .queenlang .transpiler .nodes .project .ProjectNode ;
3631import org .queenlang .transpiler .nodes .project .QueenProject ;
3732
3833import java .io .IOException ;
39- import java .io .InputStream ;
4034import java .nio .file .Path ;
4135import java .util .List ;
42- import java .util .stream .Collectors ;
4336
4437/**
4538 * Queen to Java transpiler.
@@ -73,10 +66,4 @@ public void transpile(final List<Path> files) throws QueenTranspilationException
7366 );
7467 project .transpileTo (this .output );
7568 }
76-
77- @ Override
78- @ Deprecated
79- public String transpile (InputStream clazz , String fileName ) throws IOException , QueenTranspilationException {
80- return null ;
81- }
8269}
Original file line number Diff line number Diff line change 3939 */
4040public interface QueenTranspiler {
4141 void transpile (final List <Path > files ) throws QueenTranspilationException , IOException ;
42-
43- @ Deprecated
44- default String transpile (final File input ) throws IOException , QueenTranspilationException {
45- return this .transpile (new FileInputStream (input ), input .getName ());
46- }
47-
48- @ Deprecated
49- default String transpile (final String input , final String fileName ) throws IOException , QueenTranspilationException {
50- return this .transpile (new ByteArrayInputStream (input .getBytes ()), fileName );
51- }
52-
53- /**
54- * Transpile the given Queen class into some other code.
55- * @param clazz InputStream class.
56- * @return Transpiled code.
57- * @throws IOException If we cannot read the InputStream.
58- */
59- @ Deprecated
60- String transpile (final InputStream clazz , final String fileName ) throws IOException , QueenTranspilationException ;
61-
6242}
You can’t perform that action at this time.
0 commit comments