public interface JSourceFile extends JCommentable
| Modifier and Type | Method and Description |
|---|---|
JClassDef |
_class(int mods,
String name)
Add a class definition to this source file.
|
JClassDef |
_enum(int mods,
String name)
Add an enum definition to this source file.
|
JSourceFile |
_import(Class<?> type)
Add a type import to this source file.
|
JSourceFile |
_import(JType type)
Add a type import to this source file.
|
JSourceFile |
_import(String type)
Add a type import to this source file.
|
JClassDef |
_interface(int mods,
String name)
Add an interface definition to this source file.
|
JClassDef |
annotationInterface(int mods,
String name)
Add an annotation interface definition to this source file.
|
JSourceFile |
blankLine()
Add a blank line to this source file.
|
JSourceFile |
importStatic(Class<?> type,
String member)
Add a static member import to this source file.
|
JSourceFile |
importStatic(JType type,
String member)
Add a static member import to this source file.
|
JSourceFile |
importStatic(String type,
String member)
Add a static member import to this source file.
|
blockComment, lineCommentJSourceFile _import(String type)
type - the type to importJSourceFile _import(JType type)
type - the type to importJSourceFile _import(Class<?> type)
type - the type to importJSourceFile importStatic(String type, String member)
type - the type to import frommember - the member nameJSourceFile importStatic(JType type, String member)
type - the type to import frommember - the member nameJSourceFile importStatic(Class<?> type, String member)
type - the type to import frommember - the member nameJSourceFile blankLine()
JClassDef _class(int mods, String name)
mods - the modifiersname - the class nameJClassDef _enum(int mods, String name)
mods - the modifiersname - the enum nameJClassDef _interface(int mods, String name)
mods - the modifiersname - the interface nameCopyright © 2015. All rights reserved.