Class DefaultClassTree
java.lang.Object
- All Implemented Interfaces:
FileTree<ClassFile>, Proxyable, Resource, Resources<ClassFile>, ClasspathElement
The type ClassTree.
-
Field Summary
Fields inherited from class DefaultResources
log -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultClassTree(ResourceType<? extends ClassTree> type, Project project, Path root) Instantiates a new class tree. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ClassTree>
TcreateClassTree(ResourceType<T> type, Project project, Path path) Creates the class tree.toPath()Return the representation of the element as it must appear on the classpath.Methods inherited from class DefaultFileTree
asOf, clear, createFileTree, delete, entries, equals, exclude, hashCode, root, root, stream, toString, withDirectoriesMethods inherited from class DefaultResources
add, isEmptyMethods inherited from class ResourceObject
typeMethods inherited from interface Resource
asOfLocalized, type
-
Constructor Details
-
DefaultClassTree
Instantiates a new class tree.- Parameters:
type- the typeproject- the projectroot- the root
-
-
Method Details
-
createClassTree
public static <T extends ClassTree> T createClassTree(ResourceType<T> type, Project project, Path path) Creates the class tree.- Type Parameters:
T- the generic type- Parameters:
type- the typeproject- the projectpath- the path- Returns:
- the t
-
toPath
Description copied from interface:ClasspathElementReturn the representation of the element as it must appear on the classpath.- Specified by:
toPathin interfaceClasspathElement- Returns:
- the path
-