java.lang.Object
io.github.ascopes.jct.filemanagers.ModuleLocation
- All Implemented Interfaces:
JavaFileManager.Location
@API(since="0.0.1",
status=STABLE)
public final class ModuleLocation
extends Object
implements JavaFileManager.Location
Handle that represents the location of a module.
- Since:
- 0.0.1
- Author:
- Ashley Scopes
-
Constructor Summary
ConstructorsConstructorDescriptionModuleLocation(JavaFileManager.Location parent, String moduleName) Initialize the location. -
Method Summary
-
Constructor Details
-
ModuleLocation
Initialize the location.- Parameters:
parent- the parent location.moduleName- the module name.- Throws:
IllegalArgumentException- if the parent location is not an output location or a module-oriented location.
-
-
Method Details
-
getParent
Get the parent location.- Returns:
- the parent location.
-
getModuleName
Get the module name.- Returns:
- the module name.
-
getName
- Specified by:
getNamein interfaceJavaFileManager.Location
-
isOutputLocation
- Specified by:
isOutputLocationin interfaceJavaFileManager.Location
-
isModuleOrientedLocation
- Specified by:
isModuleOrientedLocationin interfaceJavaFileManager.Location
-
equals
-
hashCode
-
toString
-