org.sonar.sslr.internal.text
Class CompositeText.CompositeTextCharSequence

java.lang.Object
  extended by org.sonar.sslr.internal.text.CompositeText.CompositeTextCharSequence
All Implemented Interfaces:
CharSequence, TextCharSequence
Enclosing class:
CompositeText

public class CompositeText.CompositeTextCharSequence
extends Object
implements TextCharSequence


Constructor Summary
CompositeText.CompositeTextCharSequence()
           
 
Method Summary
 char charAt(int index)
           
 TextLocation getCopyLocation(int index)
           
 TextLocation getLocation(int index)
           
 Text getText()
           
 int length()
           
 TextCharSequence subSequence(int start, int end)
           
 Text subText(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompositeText.CompositeTextCharSequence

public CompositeText.CompositeTextCharSequence()
Method Detail

getText

public Text getText()
Specified by:
getText in interface TextCharSequence

length

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

charAt

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

subSequence

public TextCharSequence subSequence(int start,
                                    int end)
Specified by:
subSequence in interface CharSequence
Specified by:
subSequence in interface TextCharSequence
Parameters:
start - the start index, inclusive
end - the end index, exclusive

subText

public Text subText(int start,
                    int end)
Specified by:
subText in interface TextCharSequence
Parameters:
start - the start index, inclusive
end - the end index, exclusive

getLocation

public TextLocation getLocation(int index)
Specified by:
getLocation in interface TextCharSequence

getCopyLocation

public TextLocation getCopyLocation(int index)

toString

public String toString()
Specified by:
toString in interface CharSequence
Specified by:
toString in interface TextCharSequence
Overrides:
toString in class Object
Returns:
a string containing the characters in this sequence in the same order as this sequence


Copyright © 2009-2014 SonarSource. All Rights Reserved.