Package org.jboss.jdeparser
Interface JSourceFile
- All Superinterfaces:
JCommentable
A source file.
- Author:
- David M. Lloyd
-
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 org.jboss.jdeparser.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
Add a class definition to this source file.- Parameters:
mods
- the modifiersname
- the class name- Returns:
- the class definition
-
_enum
Add an enum definition to this source file.- Parameters:
mods
- the modifiersname
- the enum name- Returns:
- the enum definition
-
_interface
Add an interface definition to this source file.- Parameters:
mods
- the modifiersname
- the interface name- Returns:
- the interface definition
-
annotationInterface
Add an annotation interface definition to this source file.- Parameters:
mods
- the modifiersname
- the annotation interface name- Returns:
- the annotation interface definition
-