public interface JClassDef extends JAnnotatable, JDocCommentable, JGenericDef, JClassDefSection
Modifier and Type | Method and Description |
---|---|
JEnumConstant |
_enum(String name)
Add an enum constant.
|
JClassDef |
_extends(Class<?> clazz)
Add an
extends type to this type. |
JClassDef |
_extends(JType type)
Add an
extends type to this type. |
JClassDef |
_extends(String name)
Add an
extends type to this type. |
JClassDef |
_implements(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(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, annotate
deprecated, docComment
typeParam, typeParams
_class, _enum, _interface, annotationInterface, constructor, field, field, field, field, field, field, init, method, method, method, section, staticInit
blockComment, lineComment
JClassDef blankLine()
blankLine
in interface JClassDefSection
JClassDef _extends(String name)
extends
type to this type.name
- the type nameJClassDef _extends(JType type)
extends
type to this type.type
- the typeJClassDef _extends(Class<?> clazz)
extends
type to this type.clazz
- the typeJClassDef _implements(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(Class<?>... clazz)
implements
type(s) to this type.clazz
- the typeJType erasedType()
JType genericType()
JEnumConstant _enum(String name)
name
- the constant nameCopyright © 2019 JBoss by Red Hat. All rights reserved.