Package io.github.chrimle.classforge
Interface Builder<T extends Builder<T>>
- All Known Implementing Classes:
AbstractBuilder,ClassBuilder,EnumBuilder
Builder of a Java class - which MAY generate a
class, enum or
record.- Since:
- 0.1.0
- Author:
- Chrimle
-
Method Summary
Modifier and TypeMethodDescriptioncommit()Commits the currently uncommitted class.updateClassName(String className) Updates theclassNameof the currently uncommitted class.updateDirectory(String directory) Updates thedirectoryof the currently uncommitted class.updatePackageName(String packageName) Updates thepackageNameof the currently uncommitted class.
-
Method Details
-
updateDirectory
Updates thedirectoryof the currently uncommitted class.- Parameters:
directory- of the class.- Returns:
- this
Builder. - Since:
- 0.1.0
-
updateClassName
Updates theclassNameof the currently uncommitted class.- Parameters:
className- of the class.- Returns:
- this
Builder. - Since:
- 0.1.0
-
updatePackageName
Updates thepackageNameof the currently uncommitted class.- Parameters:
packageName- of the class.- Returns:
- this
Builder. - Since:
- 0.1.0
-
commit
T commit()Commits the currently uncommitted class.- Returns:
- this
Builder. - Since:
- 0.1.0
-