Modifier and Type | Interface and Description |
---|---|
interface |
JAnonymousClassDef
An anonymous class definition.
|
Modifier and Type | Method and Description |
---|---|
JClassDef |
JBlock._class(int mods,
String name)
Insert a local class definition at this point.
|
JClassDef |
JClassDefSection._class(int mods,
String name)
Add a nested class to this type.
|
JClassDef |
JSourceFile._class(int mods,
String name)
Add a class definition to this source file.
|
JClassDef |
JClassDefSection._enum(int mods,
String name)
Add a nested enum to this type.
|
JClassDef |
JSourceFile._enum(int mods,
String name)
Add an enum definition to this source file.
|
JClassDef |
JClassDef._extends(Class<?> clazz)
Add an
extends type to this type. |
JClassDef |
JClassDef._extends(JType type)
Add an
extends type to this type. |
JClassDef |
JClassDef._extends(String name)
Add an
extends type to this type. |
JClassDef |
JClassDef._implements(Class<?>... clazz)
Add one or more
implements type(s) to this type. |
JClassDef |
JClassDef._implements(JType... type)
Add one or more
implements type(s) to this type. |
JClassDef |
JClassDef._implements(String... name)
Add one or more
implements type(s) to this type. |
JClassDef |
JClassDefSection._interface(int mods,
String name)
Add a nested interface to this type.
|
JClassDef |
JSourceFile._interface(int mods,
String name)
Add an interface definition to this source file.
|
JClassDef |
JClassDefSection.annotationInterface(int mods,
String name)
Add a nested annotation interface to this type.
|
JClassDef |
JSourceFile.annotationInterface(int mods,
String name)
Add an annotation interface definition to this source file.
|
JClassDef |
JClassDef.blankLine()
Add a blank line at this point of the type.
|
JClassDef |
JEnumConstant.body()
Add an implementation body to this enum constant.
|
Modifier and Type | Method and Description |
---|---|
static JType |
JTypes.$t(JClassDef classDef)
Return the erased type of a class definition.
|
static JType |
JTypes.typeOf(JClassDef classDef)
Return the erased type of a class definition.
|
Copyright © 2019 JBoss by Red Hat. All rights reserved.