public interface JSourceFile extends JCommentable
Modifier and Type | Method and 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(JType type)
Add a type import to this source file.
|
JSourceFile |
_import(java.lang.String 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.
|
JClassDef |
annotationInterface(int mods,
java.lang.String name)
Add an annotation interface definition to this source file.
|
JSourceFile |
blankLine()
Add a blank line to this source file.
|
JSourceFile |
importStatic(java.lang.Class<?> type,
java.lang.String member)
Add a static member import to this source file.
|
JSourceFile |
importStatic(JType type,
java.lang.String member)
Add a static member import to this source file.
|
JSourceFile |
importStatic(java.lang.String type,
java.lang.String member)
Add a static member import to this source file.
|
blockComment, lineComment
JSourceFile _import(java.lang.String type)
type
- the type to importJSourceFile _import(JType type)
type
- the type to importJSourceFile _import(java.lang.Class<?> type)
type
- the type to importJSourceFile importStatic(java.lang.String type, java.lang.String member)
type
- the type to import frommember
- the member nameJSourceFile importStatic(JType type, java.lang.String member)
type
- the type to import frommember
- the member nameJSourceFile importStatic(java.lang.Class<?> type, java.lang.String member)
type
- the type to import frommember
- the member nameJSourceFile blankLine()
JClassDef _class(int mods, java.lang.String name)
mods
- the modifiersname
- the class nameJClassDef _enum(int mods, java.lang.String name)
mods
- the modifiersname
- the enum nameJClassDef _interface(int mods, java.lang.String name)
mods
- the modifiersname
- the interface nameJClassDef annotationInterface(int mods, java.lang.String name)
mods
- the modifiersname
- the annotation interface name