Package org.jboss.jdeparser
Class LineJComment
java.lang.Object
org.jboss.jdeparser.AbstractJComment
org.jboss.jdeparser.LineJComment
- All Implemented Interfaces:
BlockContent
,ClassContent
,ClassFileContent
,JClassItem
,JComment
,Writable
class LineJComment
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 -
Method Summary
Modifier and TypeMethodDescriptionGet the kind of item.int
Get the modifiers of this item.getName()
Get the name of this element, if there is one.boolean
hasAllModifiers
(int mods) Determine whether this item has all of the modifiers specified by the given bitwise-OR-joined argument.boolean
hasAnyModifier
(int mods) Determine whether this item has any of the modifiers specified by the given bitwise-OR-joined argument.void
write
(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
-
Constructor Details
-
LineJComment
LineJComment()
-
-
Method Details
-
write
- Specified by:
write
in interfaceWritable
- Overrides:
write
in classAbstractJComment
- Throws:
IOException
-
getItemKind
Description copied from interface:JClassItem
Get the kind of item.- Specified by:
getItemKind
in interfaceJClassItem
- Returns:
- the item kind
-
getModifiers
public int getModifiers()Description copied from interface:JClassItem
Get the modifiers of this item.- Specified by:
getModifiers
in interfaceJClassItem
- Returns:
- the modifiers
- See Also:
-
hasAllModifiers
public boolean hasAllModifiers(int mods) Description copied from interface:JClassItem
Determine whether this item has all of the modifiers specified by the given bitwise-OR-joined argument.- Specified by:
hasAllModifiers
in interfaceJClassItem
- Parameters:
mods
- the modifier(s)- Returns:
true
if all of the modifiers are present,false
otherwise
-
hasAnyModifier
public boolean hasAnyModifier(int mods) Description copied from interface:JClassItem
Determine whether this item has any of the modifiers specified by the given bitwise-OR-joined argument.- Specified by:
hasAnyModifier
in interfaceJClassItem
- Parameters:
mods
- the modifier(s)- Returns:
true
if any if the modifiers are present,false
otherwise
-
getName
Description copied from interface:JClassItem
Get the name of this element, if there is one.- Specified by:
getName
in interfaceJClassItem
- Returns:
- the name, or
null
if there is none
-