Package org.eolang.maven.tojos
Class TranspiledTojos
- java.lang.Object
-
- org.eolang.maven.tojos.TranspiledTojos
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public final class TranspiledTojos extends Object implements Closeable
Transpiled tojos that keeps information about all transpiled files.- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description TranspiledTojos(org.cactoos.scalar.Sticky<? extends com.yegor256.tojos.Tojos> tojos)The main public constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Path transpiled, Path optimized)Add transpiled file to the list.voidclose()longremove(Path optimized)Remove all transpiled files by xmir.
-
-
-
Method Detail
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
add
public void add(Path transpiled, Path optimized)
Add transpiled file to the list.- Parameters:
transpiled- Transpiled file.optimized- Optimized xmir file.
-
remove
public long remove(Path optimized)
Remove all transpiled files by xmir.- Parameters:
optimized- Optimized xmir file.- Returns:
- Number of removed files.
-
-