class StaticInitJBlock extends BasicJBlock implements ClassContent, JClassItem
JClassItem.Kind
JBlock.Braces
SMART_NAME_SORT
Constructor and Description |
---|
StaticInitJBlock() |
Modifier and Type | Method and 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) |
_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
blockComment, lineComment, writeComments
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
blockComment, lineComment
public void write(SourceFileWriter writer) throws java.io.IOException
write
in interface Writable
write
in class BasicJBlock
java.io.IOException
public JClassItem.Kind getItemKind()
JClassItem
getItemKind
in interface JClassItem
public int getModifiers()
JClassItem
getModifiers
in interface JClassItem
JMod
public boolean hasAllModifiers(int mods)
JClassItem
hasAllModifiers
in interface JClassItem
mods
- the modifier(s)true
if all of the modifiers are present, false
otherwisepublic boolean hasAnyModifier(int mods)
JClassItem
hasAnyModifier
in interface JClassItem
mods
- the modifier(s)true
if any if the modifiers are present, false
otherwisepublic java.lang.String getName()
JClassItem
getName
in interface JClassItem
null
if there is none