class InterfaceJClassDef extends AbstractJClassDef implements JClassItem
JClassItem.KindSMART_NAME_SORT| Constructor and Description |
|---|
InterfaceJClassDef(int mods,
AbstractJClassDef enclosingClass,
java.lang.String name) |
InterfaceJClassDef(int mods,
ImplJSourceFile classFile,
java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
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. |
JMethodDef |
constructor(java.util.ArrayList<ClassContent> content,
int mods) |
(package private) Tokens.$KW |
designation() |
JClassItem.Kind |
getItemKind()
Get the kind of item.
|
java.lang.String |
getName()
Get the name of this element, if there is one.
|
(package private) boolean |
hasInterfaceStyleExtends() |
JBlock |
init(java.util.ArrayList<ClassContent> content) |
(package private) boolean |
methodCanHaveBody(int mods) |
(package private) boolean |
supportsCompactInitOnly() |
_class, _class, _enum, _enum, _enum, _implements, _implements, _implements, _interface, _interface, add, add, annotationInterface, annotationInterface, blankLine, constructor, erasedType, field, field, field, field, field, field, field, genericType, getClassFile, getContent, getEnclosingClass, getExtends, getImplements, getMemberIndentation, getModifiers, getMods, hasAllModifiers, hasAnyModifier, init, method, method, method, method, section, staticInit, staticInit, typeParam, write, writeClassHeader, writeContent, writeContentBlocktypeParams, typeParamsToArgs, writeTypeParamsannotate, annotate, annotate, writeAnnotationsdeprecated, docComment, writeDocCommentsblockComment, lineComment, writeCommentsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetModifiers, hasAllModifiers, hasAnyModifierannotate, annotate, annotatedeprecated, docCommenttypeParamsblockComment, lineCommentInterfaceJClassDef(int mods,
ImplJSourceFile classFile,
java.lang.String name)
InterfaceJClassDef(int mods,
AbstractJClassDef enclosingClass,
java.lang.String name)
Tokens.$KW designation()
designation in class AbstractJClassDefpublic JClassDef _extends(java.lang.String name)
JClassDefextends type to this type._extends in interface JClassDef_extends in class AbstractJClassDefname - the type namepublic JClassDef _extends(JType type)
JClassDefextends type to this type._extends in interface JClassDef_extends in class AbstractJClassDeftype - the typepublic JClassDef _extends(java.lang.Class<?> clazz)
JClassDefextends type to this type._extends in interface JClassDef_extends in class AbstractJClassDefclazz - the typeboolean hasInterfaceStyleExtends()
hasInterfaceStyleExtends in class AbstractJClassDefpublic JBlock init(java.util.ArrayList<ClassContent> content)
init in interface Sectionableinit in class AbstractJClassDefpublic JMethodDef constructor(java.util.ArrayList<ClassContent> content, int mods)
constructor in interface Sectionableconstructor in class AbstractJClassDefboolean supportsCompactInitOnly()
supportsCompactInitOnly in class AbstractJClassDefboolean methodCanHaveBody(int mods)
methodCanHaveBody in class AbstractJClassDefpublic JClassItem.Kind getItemKind()
JClassItemgetItemKind in interface JClassItempublic java.lang.String getName()
JClassItemgetName in interface JClassItemgetName in class AbstractJClassDefnull if there is none