public interface SourceHasName extends SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, EMPTY_ARRAY, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Gets the name string from the name element.
|
SourceName |
getNameElement()
Gets the name symbol.
|
void |
setName(java.lang.String name)
Sets the name string on the name element to be the input
name.
|
void |
setNameElement(SourceName name)
Unlinks the current name and links the input element.
|
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getJdkVersion, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, getTokens, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
SourceName getNameElement()
void setNameElement(SourceName name)
java.lang.IllegalStateException
- if the input element is already linked.java.lang.String getName()
void setName(java.lang.String name)