Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

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 ".*".


Field Summary
static SourceName[] EMPTY_ARRAY
           
 
Fields inherited from interface oracle.javatools.parser.java.v2.model.SourceElement
CHILDREN_ALL, CHILDREN_BLANKLINES, CHILDREN_COMMENTS, CHILDREN_default, CHILDREN_none, CHILDREN_REGULAR, PRINT_ALL, REFORMAT_ALL, REFORMAT_INDENT
 
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, clearBinding, cloneSelf, compile, getBinding, getChildren, getChildren, getCompiledObject, getContainedElements, getEndOffset, getOwningFile, getOwningSourceFile, getParent, getSiblingAfter, getSiblingBefore, getSiblings, getSiblings, getStartOffset, getSymbolKind, getText, 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
 

Field Detail

EMPTY_ARRAY

static final SourceName[] EMPTY_ARRAY
Method Detail

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.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-04

Copyright © 1997, 2010, Oracle. All rights reserved.