Package org.eolang.maven.tojos
Class ForeignTojos
- java.lang.Object
-
- org.eolang.maven.tojos.ForeignTojos
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public final class ForeignTojos extends Object implements Closeable
Foreign tojos.- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description ForeignTojos(org.cactoos.Scalar<com.yegor256.tojos.Tojos> scalar, Supplier<String> scope)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForeignTojo
add(String name)
Add a foreign tojo.Collection<ForeignTojo>
all()
Get all tojos as a collection.void
close()
boolean
contains(String name)
Check if the tojos contains a foreign tojo with name.Collection<ForeignTojo>
dependencies()
Get the tojos that doesn't have dependency.ForeignTojo
find(String id)
Find tojo by tojo id.int
size()
Get the size of the tojos.String
status()
Status of tojos.Collection<ForeignTojo>
unprobed()
Get the tojos that have not probed yet.Collection<ForeignTojo>
withLinted()
Get the tojos that have corresponding linted XMIR.Collection<ForeignTojo>
withoutSources()
Get the tojos that do not have corresponding eo and xmir.Collection<ForeignTojo>
withShaken()
Get the tojos that have corresponding shaken XMIR.Collection<ForeignTojo>
withSources()
Get the tojos that have corresponding eo file.Collection<ForeignTojo>
withXmir()
Get the tojos that have corresponding xmir.
-
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
add
public ForeignTojo add(String name)
Add a foreign tojo.- Parameters:
name
- The name of the tojo.- Returns:
- The tojo.
-
find
public ForeignTojo find(String id)
Find tojo by tojo id.- Parameters:
id
- The id of the tojo.- Returns:
- The tojo.
-
withXmir
public Collection<ForeignTojo> withXmir()
Get the tojos that have corresponding xmir.- Returns:
- The tojos.
-
withShaken
public Collection<ForeignTojo> withShaken()
Get the tojos that have corresponding shaken XMIR.- Returns:
- The tojos.
-
withLinted
public Collection<ForeignTojo> withLinted()
Get the tojos that have corresponding linted XMIR.- Returns:
- The tojos.
-
dependencies
public Collection<ForeignTojo> dependencies()
Get the tojos that doesn't have dependency.- Returns:
- The tojos.
-
withSources
public Collection<ForeignTojo> withSources()
Get the tojos that have corresponding eo file.- Returns:
- The tojos.
-
withoutSources
public Collection<ForeignTojo> withoutSources()
Get the tojos that do not have corresponding eo and xmir.- Returns:
- The tojos.
-
unprobed
public Collection<ForeignTojo> unprobed()
Get the tojos that have not probed yet.- Returns:
- The tojos.
-
all
public Collection<ForeignTojo> all()
Get all tojos as a collection.- Returns:
- Collection of tojos.
-
contains
public boolean contains(String name)
Check if the tojos contains a foreign tojo with name.- Parameters:
name
- The name of the tojo.- Returns:
- True if the tojo exists.
-
size
public int size()
Get the size of the tojos.- Returns:
- The size of the tojos.
-
status
public String status()
Status of tojos.- Returns:
- Status in text
-
-