Package io.helidon.build.dev
Class BuildRootType
- java.lang.Object
-
- io.helidon.build.dev.BuildRootType
-
public class BuildRootType extends Object
A build root type.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BuildRootTypecreate(DirectoryType directoryType, BiPredicate<Path,Path> filter)Creates a new type.DirectoryTypedirectoryType()Returns the associated directory type.booleanequals(Object o)BiPredicate<Path,Path>filter()Returns the associated file filter.inthashCode()static BuildRootTypejavaClasses()Returns the Java classes instance.static BuildRootTypejavaSources()Returns the Java sources instance.static BiPredicate<Path,Path>matchesJavaClass()Returns a filter that returnstruefor any filename ending with".class".static BiPredicate<Path,Path>matchesJavaSource()Returns a filter that returnstruefor any filename ending with".java".static BiPredicate<Path,Path>matchesResource()Returns a filter that returnstruefor any filename that does not start with"."and does not end with".class",".swp"or"~".static BuildRootTyperesources()Returns the resources instance.StringtoString()
-
-
-
Method Detail
-
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 returnstruefor 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 ofPathFilters.
-
matchesJavaClass
public static BiPredicate<Path,Path> matchesJavaClass()
Returns a filter that returnstruefor 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 ofPathFilters.
-
matchesResource
public static BiPredicate<Path,Path> matchesResource()
Returns a filter that returnstruefor 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 ofPathFilters.
-
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.
-
-