Class ForeignTojo


  • public final class ForeignTojo
    extends Object
    Foreign tojo.
    Since:
    0.30
    • Constructor Detail

      • ForeignTojo

        public ForeignTojo​(com.yegor256.tojos.Tojo original)
        Ctor.
        Parameters:
        original - The delegate.
    • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object