Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

javax.ide.model.java.source.tree
Interface HasNameT

All Superinterfaces:
Tree
All Known Subinterfaces:
AnnotationT, ClassT, DocCommentT, DotExpressionT, EnumConstantT, FieldVariableT, FormalParameterT, IdentifierExpressionT, ImportT, LocalVariableT, MemberVariableT, MethodCallExpressionT, MethodT, PackageT, StatementLabelT, TypeParameterT, TypeReferenceT, VariableT

public interface HasNameT
extends Tree

Common supertype for elements have have a NameT.


Field Summary
 
Fields inherited from interface javax.ide.model.java.source.tree.Tree
EMPTY_ARRAY
 
Method Summary
 java.lang.String getName()
          Gets the name string from the name element.
 NameT 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(NameT name)
          Unlinks the current name and links the input element.
 
Methods inherited from interface javax.ide.model.java.source.tree.Tree
accept, addSelf, addSelf, addSelfAfter, addSelfBefore, clearProperty, cloneSelf, getChildren, getOwningFile, getParent, getPosition, getProperty, getSiblingAfter, getSiblingBefore, getSiblings, getTreeKind, isSynthetic, removeSelf, replaceSelf, setProperty
 

Method Detail

getNameElement

NameT getNameElement()
Gets the name symbol.

Returns:
The NameSymbol associated with this object. Null if none.

setNameElement

void setNameElement(NameT name)
Unlinks the current name and links the input element.

Throws:
java.lang.IllegalStateException - if the input element is already linked.

getName

java.lang.String getName()
Gets the name string from the name element. Convenience.

Returns:
The name string associated with this object. Always non-null. If no name is found, the empty string is returned.

setName

void setName(java.lang.String name)
Sets the name string on the name element to be the input name. Convenience.


Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.1.0)

E17493-02

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