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
discoveredAt()
The discovered at location.boolean
equals(Object other)
String
hash()
The tojo hash.boolean
hasHash()
Checks if tojo has hash.int
hashCode()
String
identifier()
The id of the tojo.Path
linted()
The tojo linted xmir.boolean
notOptimized()
Checks if tojo was not already optimized.boolean
notParsed()
Check if the given tojo has not been parsed.boolean
notShaken()
Checks if tojo was not already shaken.Path
optimized()
The tojo optimized xmir.String
probed()
The tojo probed.String
scope()
Return the scope of the tojo.Path
shaken()
The tojo shaken xmir.Path
source()
The tojo eo object.String
toString()
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
withLinted(Path xmir)
Set the linted xmir.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
withShaken(Path xmir)
Set the shaken xmir.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.
-
shaken
public Path shaken()
The tojo shaken xmir.- Returns:
- The shaken xmir.
-
linted
public Path linted()
The tojo linted xmir.- Returns:
- The shaken 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.
-
probed
public String probed()
The tojo probed.- Returns:
- The probed.
-
discoveredAt
public String discoveredAt()
The discovered at location.- Returns:
- The discovered at.
-
notOptimized
public boolean notOptimized()
Checks if tojo was not already optimized.- Returns:
- True if optimization is required, false otherwise.
-
notShaken
public boolean notShaken()
Checks if tojo was not already shaken.- Returns:
- True if shake 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.
-
withShaken
public ForeignTojo withShaken(Path xmir)
Set the shaken xmir.- Parameters:
xmir
- The shaken xmir.- Returns:
- The tojo itself.
-
withLinted
public ForeignTojo withLinted(Path xmir)
Set the linted xmir.- Parameters:
xmir
- The linted 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.
-
-