Package org.jboss.jdeparser
Class InterfaceJClassDef
- java.lang.Object
-
- All Implemented Interfaces:
ClassContent
,ClassFileContent
,JAnnotatable
,JClassDef
,JClassDefSection
,JClassItem
,JCommentable
,JDocCommentable
,JGenericDef
,Sectionable
,Writable
class InterfaceJClassDef extends AbstractJClassDef implements JClassItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JClassItem
JClassItem.Kind
-
-
Field Summary
-
Fields inherited from interface org.jboss.jdeparser.JClassItem
SMART_NAME_SORT
-
-
Constructor Summary
Constructors Constructor Description InterfaceJClassDef(int mods, AbstractJClassDef enclosingClass, java.lang.String name)
InterfaceJClassDef(int mods, ImplJSourceFile classFile, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JClassDef
_extends(java.lang.Class<?> clazz)
Add anextends
type to this type.JClassDef
_extends(java.lang.String name)
Add anextends
type to this type.JClassDef
_extends(JType type)
Add anextends
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()
-
Methods inherited from class org.jboss.jdeparser.AbstractJClassDef
_class, _class, _enum, _enum, _enum, _implements, _implements, _implements, _interface, _interface, add, add, annotationInterface, annotationInterface, blankLine, blockComment, constructor, erasedType, field, field, field, field, field, field, field, genericType, getClassFile, getContent, getEnclosingClass, getExtends, getImplements, getMemberIndentation, getModifiers, getMods, hasAllModifiers, hasAnyModifier, init, lineComment, method, method, method, method, section, staticInit, staticInit, typeParam, write, writeClassHeader, writeContent, writeContentBlock
-
Methods inherited from class org.jboss.jdeparser.AbstractJGeneric
typeParams, typeParamsToArgs, writeTypeParams
-
Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotations
-
Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
writeComments
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotate
-
Methods inherited from interface org.jboss.jdeparser.JClassItem
getModifiers, hasAllModifiers, hasAnyModifier
-
Methods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docComment
-
Methods inherited from interface org.jboss.jdeparser.JGenericDef
typeParams
-
-
-
-
Constructor Detail
-
InterfaceJClassDef
InterfaceJClassDef(int mods, ImplJSourceFile classFile, java.lang.String name)
-
InterfaceJClassDef
InterfaceJClassDef(int mods, AbstractJClassDef enclosingClass, java.lang.String name)
-
-
Method Detail
-
designation
Tokens.$KW designation()
- Specified by:
designation
in classAbstractJClassDef
-
_extends
public JClassDef _extends(java.lang.String name)
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
name
- the type name- Returns:
- this type definition
-
_extends
public JClassDef _extends(JType type)
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
type
- the type- Returns:
- this type definition
-
_extends
public JClassDef _extends(java.lang.Class<?> clazz)
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
clazz
- the type- Returns:
- this type definition
-
hasInterfaceStyleExtends
boolean hasInterfaceStyleExtends()
- Overrides:
hasInterfaceStyleExtends
in classAbstractJClassDef
-
init
public JBlock init(java.util.ArrayList<ClassContent> content)
- Specified by:
init
in interfaceSectionable
- Overrides:
init
in classAbstractJClassDef
-
constructor
public JMethodDef constructor(java.util.ArrayList<ClassContent> content, int mods)
- Specified by:
constructor
in interfaceSectionable
- Overrides:
constructor
in classAbstractJClassDef
-
supportsCompactInitOnly
boolean supportsCompactInitOnly()
- Overrides:
supportsCompactInitOnly
in classAbstractJClassDef
-
methodCanHaveBody
boolean methodCanHaveBody(int mods)
- Overrides:
methodCanHaveBody
in classAbstractJClassDef
-
getItemKind
public JClassItem.Kind getItemKind()
Description copied from interface:JClassItem
Get the kind of item.- Specified by:
getItemKind
in interfaceJClassItem
- Returns:
- the item kind
-
getName
public java.lang.String getName()
Description copied from interface:JClassItem
Get the name of this element, if there is one.- Specified by:
getName
in interfaceJClassItem
- Overrides:
getName
in classAbstractJClassDef
- Returns:
- the name, or
null
if there is none
-
-