public interface SourceLexicalElement extends SourceElement
Modifier and Type | Field and Description |
---|---|
static SourceLexicalElement[] |
EMPTY_ARRAY |
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Gets the raw text for this SourceElement.
|
int |
getTokenValue() |
void |
setText(java.lang.String text)
Attempts to replace the text of this lexical element with the input
raw text.
|
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getJdkVersion, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getTokens, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf
static final SourceLexicalElement[] EMPTY_ARRAY
int getTokenValue()
java.lang.String getText()
SourceElement
getText
in interface SourceElement
void setText(java.lang.String text)
java.lang.UnsupportedOperationException
- if this operation is illegal.