org.eclipse.internal.xtend.util
Class QualifiedName

java.lang.Object
  extended by org.eclipse.internal.xtend.util.QualifiedName

public class QualifiedName
extends java.lang.Object

Author:
Karsten Thoms

Method Summary
 QualifiedName append(QualifiedName t)
          Append another Identifier to this instance
static QualifiedName create(java.lang.String[] segments, java.lang.String delimiter)
           
static QualifiedName create(java.lang.String fqn, java.lang.String delimiter)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getFirstSegment()
           
 java.lang.String getLastSegment()
           
 java.lang.String getSegment(int index)
           
 int getSegmentCount()
           
 int hashCode()
           
 java.lang.String toString()
          Returns a canonical String representation of this using '.' as namespace delimiter.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

append

public QualifiedName append(QualifiedName t)
Append another Identifier to this instance

Parameters:
t - An identifier.
Returns:
Will return this extended by the segments of t

toString

public java.lang.String toString()
Returns a canonical String representation of this using '.' as namespace delimiter. For language specific conversion taking the concrete syntax into account see IQualifiedNameConverter#toString(QualifiedName).

Overrides:
toString in class java.lang.Object

getSegmentCount

public int getSegmentCount()

getSegment

public java.lang.String getSegment(int index)

getLastSegment

public java.lang.String getLastSegment()

getFirstSegment

public java.lang.String getFirstSegment()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

create

public static QualifiedName create(java.lang.String[] segments,
                                   java.lang.String delimiter)

create

public static QualifiedName create(java.lang.String fqn,
                                   java.lang.String delimiter)