Class DefaultClassTree
java.lang.Object
- All Implemented Interfaces:
FileTree<ClassFile>, InputTree<ClassFile>, Proxyable, Resource, Resources<ClassFile>, ClassTree, CodeContribution
A default implementation of
ClassTree.-
Nested Class Summary
Nested classes/interfaces inherited from interface InputTree
InputTree.Entry<T> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultClassTree(ResourceType<? extends ClassTree> type, Project project, Path root) Initializes a new class tree. -
Method Summary
Methods inherited from class DefaultFileTree
asOf, cleanup, clear, entries, equals, exclude, hashCode, paths, root, root, stream, toString, withDirectoriesMethods inherited from class DefaultResources
add, get, isEmptyMethods inherited from class ResourceObject
isLocked, name, name, typeMethods inherited from interface CodeContribution
moduleNameMethods inherited from interface Resource
asOfLocalized, isNewerThan, name, type
-
Constructor Details
-
DefaultClassTree
Initializes a new class tree.- Parameters:
type- the typeproject- the projectroot- the root
-
-
Method Details
-
toPath
Description copied from interface:CodeContributionReturn the representation of the element as it must appear on a classpath or module-path.- Specified by:
toPathin interfaceCodeContribution- Returns:
- the path
-
isModular
Description copied from interface:CodeContributionChecks whether this code contribution is modular. This works for both JAR files and directories. Both are considered as modular if they contain amodule-info.class. JARs are also considered as modular if they have anAutomatic-Module-Nameset in theirMANIFEST.MF.- Specified by:
isModularin interfaceCodeContribution- Returns:
- true, if the contribution is modular
-