Class ForeignTojos

    • Constructor Detail

      • ForeignTojos

        public ForeignTojos​(org.cactoos.Scalar<com.yegor256.tojos.Tojos> scalar,
                            Supplier<String> scope)
        Ctor.
        Parameters:
        scalar - Scalar
        scope - Scope
    • Method Detail

      • 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