Package org.eolang.maven.tojos
Class PlacedTojo
- java.lang.Object
-
- org.eolang.maven.tojos.PlacedTojo
-
public final class PlacedTojo extends Object
Placed tojo.- Since:
- 0.30
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdependency()The placed tojo dependency.Stringidentifier()The tojo id.booleanisClass()Check if the tojo is a class.booleanisJar()Check if the tojo is a jar.booleanplaced()Check if the tojo is placed.Stringrelated()The placed tojo related file path.booleansameHash(String hash)Check if the tojo has the same hash.voidunplace()Mark the tojo as unplaced.booleanunplaced()Check if the tojo is unplaced.
-
-
-
Method Detail
-
identifier
public String identifier()
The tojo id.- Returns:
- The id.
-
dependency
public String dependency()
The placed tojo dependency.- Returns:
- The dependency.
-
related
public String related()
The placed tojo related file path.- Returns:
- The related file path.
-
sameHash
public boolean sameHash(String hash)
Check if the tojo has the same hash.- Parameters:
hash- The hash to check.- Returns:
- True if the hash is the same.
-
unplace
public void unplace()
Mark the tojo as unplaced.
-
isClass
public boolean isClass()
Check if the tojo is a class.- Returns:
- True if the tojo is a class.
-
isJar
public boolean isJar()
Check if the tojo is a jar.- Returns:
- True if the tojo is a jar.
-
placed
public boolean placed()
Check if the tojo is placed.- Returns:
- True if the tojo is placed.
-
unplaced
public boolean unplaced()
Check if the tojo is unplaced.- Returns:
- True if the tojo is unplaced.
-
-