Skip navigation links
oracle.javatools.parser.java.v2.model
Interface SourceLexicalElement
- All Superinterfaces:
- Element, SourceElement
- All Known Subinterfaces:
- SourceLexicalBlankline, SourceLexicalComment, SourceLexicalSqlj
-
public interface SourceLexicalElement
- extends SourceElement
A lexical element is what the JLS refers to as an input element in section 3.5.
Method Summary |
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. |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement |
addSelf, addSelf, addSelfAfter, addSelfBefore, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf |
EMPTY_ARRAY
static final SourceLexicalElement[] EMPTY_ARRAY
getTokenValue
int getTokenValue()
-
- Returns:
- The token value. See JavaTokens.
getText
java.lang.String getText()
- Description copied from interface:
SourceElement
- Gets the raw text for this SourceElement.
-
- Specified by:
getText
in interface SourceElement
-
- Returns:
- The text.
setText
void setText(java.lang.String text)
- Attempts to replace the text of this lexical element with the input raw text.
-
- Throws:
java.lang.UnsupportedOperationException
- if this operation is illegal.
Skip navigation links
Copyright © 1997, 2013, Oracle. All rights reserved.