Package org.jboss.jdeparser
Class StaticInitJBlock
- java.lang.Object
-
- org.jboss.jdeparser.BasicJCommentable
-
- org.jboss.jdeparser.BasicJBlock
-
- org.jboss.jdeparser.StaticInitJBlock
-
- All Implemented Interfaces:
BlockContent
,ClassContent
,JBlock
,JClassItem
,JCommentable
,JStatement
,Writable
class StaticInitJBlock extends BasicJBlock implements ClassContent, JClassItem
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.Braces
-
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 StaticInitJBlock()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JClassItem.Kind
getItemKind()
Get the kind of item.int
getModifiers()
Get the modifiers of this item.java.lang.String
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.BasicJBlock
_assert, _assert, _break, _break, _class, _continue, _continue, _do, _for, _if, _new, _new, _new, _newAnon, _newAnon, _newAnon, _return, _return, _switch, _synchronized, _throw, _try, _while, add, addAssign, andAssign, anonLabel, anonLabel, assign, blankLine, block, call, call, call, call, callStatic, callStatic, callStatic, callStatic, callSuper, callThis, divAssign, empty, forEach, forEach, forEach, forwardLabel, get, getParent, hasSingleItemOfType, label, label, lshrAssign, modAssign, mulAssign, orAssign, postDec, postInc, preDec, preInc, shlAssign, shrAssign, size, subAssign, tempName, tempVar, tempVar, tempVar, var, var, var, var, var, var, write, write, xorAssign
-
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, 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.JCommentable
blockComment, lineComment
-
-
-
-
Method Detail
-
write
public void write(SourceFileWriter writer) throws java.io.IOException
- Specified by:
write
in interfaceWritable
- Overrides:
write
in classBasicJBlock
- Throws:
java.io.IOException
-
getItemKind
public JClassItem.Kind 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:
JMod
-
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
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
- Returns:
- the name, or
null
if there is none
-
-