public interface JClassDef extends JAnnotatable, JDocCommentable, JGenericDef, JClassDefSection
| Modifier and Type | Method and Description |
|---|---|
JEnumConstant |
_enum(java.lang.String name)
Add an enum constant.
|
JClassDef |
_extends(java.lang.Class<?> clazz)
Add an
extends type to this type. |
JClassDef |
_extends(JType type)
Add an
extends type to this type. |
JClassDef |
_extends(java.lang.String name)
Add an
extends type to this type. |
JClassDef |
_implements(java.lang.Class<?>... clazz)
Add one or more
implements type(s) to this type. |
JClassDef |
_implements(JType... type)
Add one or more
implements type(s) to this type. |
JClassDef |
_implements(java.lang.String... name)
Add one or more
implements type(s) to this type. |
JClassDef |
blankLine()
Add a blank line at this point of the type.
|
JType |
erasedType()
Get the erased type corresponding to this type definition.
|
JType |
genericType()
Get a generic type for this type definition, where the type arguments are the same as the type parameters of this
type (as defined at the time this method is called).
|
annotate, annotate, annotatedeprecated, docCommenttypeParam, typeParams_class, _enum, _interface, annotationInterface, constructor, field, field, field, field, field, field, init, method, method, method, section, staticInitblockComment, lineCommentJClassDef blankLine()
blankLine in interface JClassDefSectionJClassDef _extends(java.lang.String name)
extends type to this type.name - the type nameJClassDef _extends(JType type)
extends type to this type.type - the typeJClassDef _extends(java.lang.Class<?> clazz)
extends type to this type.clazz - the typeJClassDef _implements(java.lang.String... name)
implements type(s) to this type.name - the type nameJClassDef _implements(JType... type)
implements type(s) to this type.type - the typeJClassDef _implements(java.lang.Class<?>... clazz)
implements type(s) to this type.clazz - the typeJType erasedType()
JType genericType()
JEnumConstant _enum(java.lang.String name)
name - the constant name