org.eclipse.jdt.internal.compiler.apt.model
Class NameImpl

java.lang.Object
  extended by org.eclipse.jdt.internal.compiler.apt.model.NameImpl
All Implemented Interfaces:
CharSequence, Name

public class NameImpl
extends Object
implements Name

A String-based implementation of the type used to return strings in javax.lang.model.


Constructor Summary
NameImpl(char[] chars)
           
NameImpl(CharSequence cs)
           
 
Method Summary
 char charAt(int index)
           
 boolean contentEquals(CharSequence cs)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NameImpl

public NameImpl(CharSequence cs)

NameImpl

public NameImpl(char[] chars)
Method Detail

contentEquals

public boolean contentEquals(CharSequence cs)
Specified by:
contentEquals in interface Name

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

length

public int length()
Specified by:
length in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Name
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Name
Overrides:
equals in class Object


Copyright © 2012. All Rights Reserved.