Class BuildRootType

java.lang.Object
io.helidon.build.devloop.BuildRootType

public class BuildRootType extends Object
A build root type.
  • Method Details

    • javaSources

      public static BuildRootType javaSources()
      Returns the Java sources instance.
      Returns:
      The instance.
    • javaClasses

      public static BuildRootType javaClasses()
      Returns the Java classes instance.
      Returns:
      The instance.
    • resources

      public static BuildRootType resources()
      Returns the resources instance.
      Returns:
      The instance.
    • matchesJavaSource

      public static BiPredicate<Path,Path> matchesJavaSource()
      Returns a filter that returns true for any filename ending with ".java".
      Returns:
      The filter. The second path parameter is always ignored; a BiPredicate<Path,Path> is used for symmetry with other uses of PathFilters.
    • matchesJavaClass

      public static BiPredicate<Path,Path> matchesJavaClass()
      Returns a filter that returns true for any filename ending with ".class".
      Returns:
      The filter. The second path parameter is always ignored; a BiPredicate<Path,Path> is used for symmetry with other uses of PathFilters.
    • matchesResource

      public static BiPredicate<Path,Path> matchesResource()
      Returns a filter that returns true for any filename that does not start with "." and does not end with ".class", ".swp" or "~".
      Returns:
      The filter. The second path parameter is always ignored; a BiPredicate<Path,Path> is used for symmetry with other uses of PathFilters.
    • create

      public static BuildRootType create(DirectoryType directoryType, BiPredicate<Path,Path> filter)
      Creates a new type.
      Parameters:
      directoryType - The directory type.
      filter - The file filter.
      Returns:
      The type.
    • directoryType

      public DirectoryType directoryType()
      Returns the associated directory type.
      Returns:
      The directory type.
    • filter

      public BiPredicate<Path,Path> filter()
      Returns the associated file filter.
      Returns:
      The filter.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object