Package org.eolang.maven.tojos
Class ForeignTojo
- java.lang.Object
-
- org.eolang.maven.tojos.ForeignTojo
-
public final class ForeignTojo extends Object
Foreign tojo.- Since:
- 0.30
-
-
Constructor Summary
Constructors Constructor Description ForeignTojo(com.yegor256.tojos.Tojo original)
Ctor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
description()
The tojo description.String
hash()
The tojo hash.boolean
hasHash()
Checks if tojo has hash.String
identifier()
The id of the tojo.boolean
notOptimized()
Checks if tojo was not already optimized.boolean
notParsed()
Check if the given tojo has not been parsed.Path
optimized()
The tojo optimized xmir.String
scope()
Return the scope of the tojo.Path
source()
The tojo eo object.String
ver()
Return the temporary version of the tojo.String
version()
The tojo version.ForeignTojo
withDiscovered(int size)
Set the discovered size.ForeignTojo
withDiscoveredAt(Path path)
Set the discovered at.ForeignTojo
withHash(CommitHash hash)
Set the hash.ForeignTojo
withJar(Coordinates coordinates)
Set the jar.ForeignTojo
withOptimized(Path xmir)
Set the optimized xmir.ForeignTojo
withProbed(int count)
Set the number of probed objects.ForeignTojo
withScope(String scope)
Set the scope.ForeignTojo
withSodg(Path sodg)
Set sodg.ForeignTojo
withSource(Path source)
Set the eo path.ForeignTojo
withVer(String ver)
Temporary version.ForeignTojo
withVersion(String ver)
Set the version.ForeignTojo
withXmir(Path xmir)
Set the xmir.Path
xmir()
The tojo xmir.
-
-
-
Method Detail
-
identifier
public String identifier()
The id of the tojo.- Returns:
- The id of the tojo.
-
xmir
public Path xmir()
The tojo xmir.- Returns:
- The xmir.
-
optimized
public Path optimized()
The tojo optimized xmir.- Returns:
- The optimized xmir.
-
source
public Path source()
The tojo eo object.- Returns:
- The eo object.
-
version
public String version()
The tojo version.- Returns:
- The version.
-
description
public String description()
The tojo description.- Returns:
- The description.
-
hash
public String hash()
The tojo hash.- Returns:
- The hash.
-
notOptimized
public boolean notOptimized()
Checks if tojo was not already optimized.- Returns:
- True if optimization is required, false otherwise.
-
notParsed
public boolean notParsed()
Check if the given tojo has not been parsed.- Returns:
- True if the tojo has not been parsed.
-
hasHash
public boolean hasHash()
Checks if tojo has hash.- Returns:
- True if has hash, false otherwise.
-
withJar
public ForeignTojo withJar(Coordinates coordinates)
Set the jar.- Parameters:
coordinates
- The coordinates of jar.- Returns:
- The tojo itself.
-
withDiscovered
public ForeignTojo withDiscovered(int size)
Set the discovered size.- Parameters:
size
- The size.- Returns:
- The tojo itself.
-
withDiscoveredAt
public ForeignTojo withDiscoveredAt(Path path)
Set the discovered at.- Parameters:
path
- The path where was discovered.- Returns:
- The tojo itself.
-
withSodg
public ForeignTojo withSodg(Path sodg)
Set sodg.- Parameters:
sodg
- Sodg.- Returns:
- The tojo itself.
-
withOptimized
public ForeignTojo withOptimized(Path xmir)
Set the optimized xmir.- Parameters:
xmir
- The optimized xmir.- Returns:
- The tojo itself.
-
withSource
public ForeignTojo withSource(Path source)
Set the eo path.- Parameters:
source
- The eo path.- Returns:
- The tojo itself.
-
withHash
public ForeignTojo withHash(CommitHash hash)
Set the hash.- Parameters:
hash
- The hash.- Returns:
- The tojo itself.
-
withProbed
public ForeignTojo withProbed(int count)
Set the number of probed objects.- Parameters:
count
- The number of probed objects.- Returns:
- The tojo itself.
-
withXmir
public ForeignTojo withXmir(Path xmir)
Set the xmir.- Parameters:
xmir
- The xmir.- Returns:
- The tojo itself.
-
withVersion
public ForeignTojo withVersion(String ver)
Set the version.- Parameters:
ver
- The version.- Returns:
- The tojo itself.
-
withScope
public ForeignTojo withScope(String scope)
Set the scope.- Parameters:
scope
- The scope.- Returns:
- The tojo itself.
-
scope
public String scope()
Return the scope of the tojo.- Returns:
- The scope.
-
withVer
public ForeignTojo withVer(String ver)
Temporary version.- Parameters:
ver
- The version.- Returns:
- The tojo itself.
-
ver
public String ver()
Return the temporary version of the tojo.- Returns:
- The version.
-
-