Package org.jboss.jdeparser
Interface JSourceFile
-
- All Superinterfaces:
JCommentable
- All Known Implementing Classes:
ImplJSourceFile
public interface JSourceFile extends JCommentable
A source file.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JClassDef_class(int mods, java.lang.String name)Add a class definition to this source file.JClassDef_enum(int mods, java.lang.String name)Add an enum definition to this source file.JSourceFile_import(java.lang.Class<?> type)Add a type import to this source file.JSourceFile_import(java.lang.String type)Add a type import to this source file.JSourceFile_import(JType type)Add a type import to this source file.JClassDef_interface(int mods, java.lang.String name)Add an interface definition to this source file.JClassDefannotationInterface(int mods, java.lang.String name)Add an annotation interface definition to this source file.JSourceFileblankLine()Add a blank line to this source file.JSourceFileimportStatic(java.lang.Class<?> type, java.lang.String member)Add a static member import to this source file.JSourceFileimportStatic(java.lang.String type, java.lang.String member)Add a static member import to this source file.JSourceFileimportStatic(JType type, java.lang.String member)Add a static member import to this source file.-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
-
-
-
Method Detail
-
_import
JSourceFile _import(java.lang.String type)
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
_import
JSourceFile _import(JType type)
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
_import
JSourceFile _import(java.lang.Class<?> type)
Add a type import to this source file.- Parameters:
type- the type to import- Returns:
- this source file
-
importStatic
JSourceFile importStatic(java.lang.String type, java.lang.String member)
Add a static member import to this source file.- Parameters:
type- the type to import frommember- the member name- Returns:
- this source file
-
importStatic
JSourceFile importStatic(JType type, java.lang.String member)
Add a static member import to this source file.- Parameters:
type- the type to import frommember- the member name- Returns:
- this source file
-
importStatic
JSourceFile importStatic(java.lang.Class<?> type, java.lang.String member)
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
JClassDef _class(int mods, java.lang.String name)
Add a class definition to this source file.- Parameters:
mods- the modifiersname- the class name- Returns:
- the class definition
-
_enum
JClassDef _enum(int mods, java.lang.String name)
Add an enum definition to this source file.- Parameters:
mods- the modifiersname- the enum name- Returns:
- the enum definition
-
_interface
JClassDef _interface(int mods, java.lang.String name)
Add an interface definition to this source file.- Parameters:
mods- the modifiersname- the interface name- Returns:
- the interface definition
-
annotationInterface
JClassDef annotationInterface(int mods, java.lang.String name)
Add an annotation interface definition to this source file.- Parameters:
mods- the modifiersname- the annotation interface name- Returns:
- the annotation interface definition
-
-