public abstract class AbstractRootSlice extends AbstractSlice
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Clazz clazz)
Check whether a class belongs to a slice.
|
Set<Clazz> |
getClazzes()
Returns all classes belonging to this slice.
|
Slice |
packageOf(Class<?> clazz)
|
Slice |
packageOf(Package pkg)
|
Slice |
packageOf(String packageName)
Returns a
Slice of all classes that belong to the Java package
given by the package name passed. |
Slice |
packageTreeOf(Class<?> clazz)
|
Slice |
packageTreeOf(Package pkg)
|
Slice |
packageTreeOf(String packageName)
Returns a
Slice of all classes that belong to the Java package
given by the package name passed
or any (nested) sub-package. |
Slice |
slice(Predicate<Clazz> predicate)
Creates a new slices of all classes of this slide that fulfill the specified
name predicate.
|
Slice |
slice(String pattern)
Creates a new slices of all classes of this slide that match the specified
name pattern.
|
dependencyClosure, getDependencies, minus, minus, minus, minus, named, partitionBy, partitionBy, partitionByPackage, plus, plus, slice, slice, usespublic Slice packageOf(String packageName)
Slice of all classes that belong to the Java package
given by the package name passed.packageName - the name of the Java packagepublic Slice packageTreeOf(Class<?> clazz)
Slice of all classes that belong to the same package
or any (nested) sub-package of the Class passed.clazz - the classpublic Slice packageTreeOf(Package pkg)
pkg - the Java packagepublic Slice packageTreeOf(String packageName)
Slice of all classes that belong to the Java package
given by the package name passed
or any (nested) sub-package.packageName - the name of the Java packagepublic Slice slice(String pattern)
Sliceslice in interface Sliceslice in class AbstractSlicepattern - the patternpublic Slice slice(Predicate<Clazz> predicate)
Slicepredicate - the predicatefor predefined predicatespublic boolean contains(Clazz clazz)
Sliceclazz - the Clazzpublic Set<Clazz> getClazzes()
SliceClasspath. A slice derived from some pattern or Predicate
will throw a ResolveException instead.Copyright © 2017–2025 Hans Jörg Heßmann. All rights reserved.