class BlankLine extends java.lang.Object implements ClassFileContent, ClassContent, BlockContent, JClassItem
JClassItem.Kind
Modifier and Type | Field and Description |
---|---|
private static BlankLine |
INSTANCE |
SMART_NAME_SORT
Modifier | Constructor and Description |
---|---|
private |
BlankLine() |
Modifier and Type | Method and Description |
---|---|
(package private) static BlankLine |
getInstance() |
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) |
private static final BlankLine INSTANCE
static BlankLine getInstance()
public void write(SourceFileWriter writer) throws 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