Package org.jboss.jdeparser
Class InitJBlock
java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.BasicJBlock
org.jboss.jdeparser.InitJBlock
- All Implemented Interfaces:
BlockContent,ClassContent,JBlock,JClassItem,JCommentable,JStatement,Writable
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.jdeparser.JBlock
JBlock.BracesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionGet the kind of item.intGet the modifiers of this item.getName()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.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, xorAssignMethods inherited from class org.jboss.jdeparser.BasicJCommentable
blockComment, lineComment, writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Constructor Details
-
InitJBlock
InitJBlock()
-
-
Method Details
-
write
- Specified by:
writein interfaceWritable- Overrides:
writein classBasicJBlock- Throws:
IOException
-
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:
-
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
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
-