Skip navigation links
oracle.javatools.parser.java.v2.model
Interface SourceName
- All Superinterfaces:
- Element, JavaElement, JavaHasName, SourceElement
- All Known Subinterfaces:
- SourceDocTagName
-
public interface SourceName
- extends SourceElement, JavaHasName
A name. Sometimes will be a qualified name. May otherwise be a simple name.
In certain cases, it may contain non-identifier characters. For example, in an import declaration, the name will include the trailing ".*".
Method Summary |
java.lang.String |
getValue()
Gets the String value of this name. |
void |
setText(java.lang.String text)
Replaces the current text with the input raw text. |
void |
setValue(java.lang.String value)
Replaces the current value with the input value. |
Methods inherited from interface oracle.javatools.parser.java.v2.model.SourceElement |
addSelf, addSelf, addSelfAfter, addSelfBefore, adjustTextIndentation, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, hasErrors, print, print, reformatSelf, removeSelf, replaceSelf, resolve, setBinding, setContext, visitSelf |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaHasName |
getName |
Methods inherited from interface oracle.javatools.parser.java.v2.model.JavaElement |
getElementKind, getFile, getModifiers, getOwner, getSourceElement, isDeprecated, isFinal, isHidden, isSourceElement, isSynthetic, printCompiledInfo |
EMPTY_ARRAY
static final SourceName[] EMPTY_ARRAY
setText
void setText(java.lang.String text)
- Replaces the current text with the input raw text.
getValue
java.lang.String getValue()
- Gets the String value of this name. The name "getValue" is inherited from the previous parser version. The "value" is not always the same as the "text". For example, if the text is an identifier including unicode characters, the value will have a translated text whereas the text is the raw text.
-
- Returns:
- The string value associated with this name symbol.
setValue
void setValue(java.lang.String value)
- Replaces the current value with the input value.
Skip navigation links
Copyright © 1997, 2012, Oracle. All rights reserved.