Package org.jboss.jdeparser
Class InterfaceJClassDef
- All Implemented Interfaces:
ClassContent,ClassFileContent,JAnnotatable,JClassDef,JClassDefSection,JClassItem,JCommentable,JDocCommentable,JGenericDef,Sectionable,Writable
-
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
ConstructorsConstructorDescriptionInterfaceJClassDef(int mods, AbstractJClassDef enclosingClass, String name) InterfaceJClassDef(int mods, ImplJSourceFile classFile, String name) -
Method Summary
Modifier and TypeMethodDescriptionAdd anextendstype to this type.Add anextendstype to this type.Add anextendstype to this type.constructor(ArrayList<ClassContent> content, int mods) (package private) Tokens.$KWGet the kind of item.getName()Get the name of this element, if there is one.(package private) booleaninit(ArrayList<ClassContent> content) (package private) booleanmethodCanHaveBody(int mods) (package private) booleanMethods 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, writeContentBlockMethods inherited from class org.jboss.jdeparser.AbstractJGeneric
typeParams, typeParamsToArgs, writeTypeParamsMethods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotationsMethods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocCommentsMethods inherited from class org.jboss.jdeparser.BasicJCommentable
writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotateMethods inherited from interface org.jboss.jdeparser.JClassItem
getModifiers, hasAllModifiers, hasAnyModifierMethods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docCommentMethods inherited from interface org.jboss.jdeparser.JGenericDef
typeParams
-
Constructor Details
-
InterfaceJClassDef
InterfaceJClassDef(int mods, ImplJSourceFile classFile, String name) -
InterfaceJClassDef
InterfaceJClassDef(int mods, AbstractJClassDef enclosingClass, String name)
-
-
Method Details
-
designation
Tokens.$KW designation()- Specified by:
designationin classAbstractJClassDef
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
name- the type name- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
type- the type- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
clazz- the type- Returns:
- this type definition
-
hasInterfaceStyleExtends
boolean hasInterfaceStyleExtends()- Overrides:
hasInterfaceStyleExtendsin classAbstractJClassDef
-
init
- Specified by:
initin interfaceSectionable- Overrides:
initin classAbstractJClassDef
-
constructor
- Specified by:
constructorin interfaceSectionable- Overrides:
constructorin classAbstractJClassDef
-
supportsCompactInitOnly
boolean supportsCompactInitOnly()- Overrides:
supportsCompactInitOnlyin classAbstractJClassDef
-
methodCanHaveBody
boolean methodCanHaveBody(int mods) - Overrides:
methodCanHaveBodyin classAbstractJClassDef
-
getItemKind
Description copied from interface:JClassItemGet the kind of item.- Specified by:
getItemKindin interfaceJClassItem- Returns:
- the item kind
-
getName
Description copied from interface:JClassItemGet the name of this element, if there is one.- Specified by:
getNamein interfaceJClassItem- Overrides:
getNamein classAbstractJClassDef- Returns:
- the name, or
nullif there is none
-