Package org.jboss.jdeparser
Class BlockJComment
- java.lang.Object
-
- org.jboss.jdeparser.AbstractJComment
-
- org.jboss.jdeparser.BlockJComment
-
- All Implemented Interfaces:
BlockContent,ClassContent,ClassFileContent,JClassItem,JComment,Writable
class BlockJComment extends AbstractJComment implements ClassContent, ClassFileContent, BlockContent, JClassItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JClassItem
JClassItem.Kind
-
-
Field Summary
-
Fields inherited from class org.jboss.jdeparser.AbstractJComment
CLOSE_PAREN_CONTENT, COMMA_CONTENT, DOC_ROOT_CONTENT, HASH_CONTENT, NL_CONTENT, OPEN_PAREN_CONTENT
-
Fields inherited from interface org.jboss.jdeparser.JClassItem
SMART_NAME_SORT
-
-
Constructor Summary
Constructors Constructor Description BlockJComment()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JClassItem.KindgetItemKind()Get the kind of item.intgetModifiers()Get the modifiers of this item.java.lang.StringgetName()Get the name of this element, if there is one.booleanhasAllModifiers(int mods)Determine whether this item has all of the modifiers specified by the given bitwise-OR-joined argument.booleanhasAnyModifier(int mods)Determine whether this item has any of the modifiers specified by the given bitwise-OR-joined argument.voidwrite(SourceFileWriter writer)-
Methods inherited from class org.jboss.jdeparser.AbstractJComment
add, addItemDirectly, block, code, docRoot, getContent, inlineDocTag, inlineDocTag, linkConstructor, linkField, linkMethod, linkMethod, linkType, nl, sp, text, typeName
-
-
-
-
Method Detail
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
- Specified by:
writein interfaceWritable- Overrides:
writein classAbstractJComment- Throws:
java.io.IOException
-
getItemKind
public JClassItem.Kind getItemKind()
Description copied from interface:JClassItemGet the kind of item.- Specified by:
getItemKindin interfaceJClassItem- Returns:
- the item kind
-
getModifiers
public int getModifiers()
Description copied from interface:JClassItemGet the modifiers of this item.- Specified by:
getModifiersin interfaceJClassItem- Returns:
- the modifiers
- See Also:
JMod
-
hasAllModifiers
public boolean hasAllModifiers(int mods)
Description copied from interface:JClassItemDetermine whether this item has all of the modifiers specified by the given bitwise-OR-joined argument.- Specified by:
hasAllModifiersin interfaceJClassItem- Parameters:
mods- the modifier(s)- Returns:
trueif all of the modifiers are present,falseotherwise
-
hasAnyModifier
public boolean hasAnyModifier(int mods)
Description copied from interface:JClassItemDetermine whether this item has any of the modifiers specified by the given bitwise-OR-joined argument.- Specified by:
hasAnyModifierin interfaceJClassItem- Parameters:
mods- the modifier(s)- Returns:
trueif any if the modifiers are present,falseotherwise
-
getName
public java.lang.String getName()
Description copied from interface:JClassItemGet the name of this element, if there is one.- Specified by:
getNamein interfaceJClassItem- Returns:
- the name, or
nullif there is none
-
-