Interface JSourceFile
- All Superinterfaces:
JCommentable
- All Known Implementing Classes:
ImplJSourceFile
A source file.
-
Method Summary
Modifier and TypeMethodDescriptionAdd a class definition to this source file.Add an enum definition to this source file.Add a type import to this source file.Add a type import to this source file.Add a type import to this source file._interface(int mods, String name) Add an interface definition to this source file.annotationInterface(int mods, String name) Add an annotation interface definition to this source file.Add a blank line to this source file.importStatic(Class<?> type, String member) Add a static member import to this source file.importStatic(String type, String member) Add a static member import to this source file.importStatic(JType type, String member) Add a static member import to this source file.Methods inherited from interface JCommentable
blockComment, lineComment
-
Method Details
-
_import
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
_import
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
_import
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
importStatic
Add a static member import to this source file.- Parameters:
type- the type to import frommember- the member name- Returns:
- this source file
-
importStatic
Add a static member import to this source file.- Parameters:
type- the type to import frommember- the member name- Returns:
- this source file
-
importStatic
Add a static member import to this source file.- Parameters:
type- the type to import frommember- the member name- Returns:
- this source file
-
blankLine
JSourceFile blankLine()Add a blank line to this source file. If sorting is enabled, blank lines may be lost.- Returns:
- this source file
-
_class
-
_enum
-
_interface
-
annotationInterface
-