org.sonar.sslr.text
Interface TextCharSequence
- All Superinterfaces:
- CharSequence
- All Known Implementing Classes:
- CompositeText.CompositeTextCharSequence, LocatedText, PlainText
public interface TextCharSequence
- extends CharSequence
This interface is not intended to be implemented by clients.
- Since:
- 1.17
- See Also:
Text.sequence()
length
int length()
- Specified by:
length in interface CharSequence
charAt
char charAt(int index)
- Specified by:
charAt in interface CharSequence
subSequence
TextCharSequence subSequence(int start,
int end)
- Specified by:
subSequence in interface CharSequence
- Parameters:
start - the start index, inclusiveend - the end index, exclusive
toString
String toString()
- Specified by:
toString in interface CharSequence- Overrides:
toString in class Object
- Returns:
- a string containing the characters in this sequence in the same order as this sequence
getText
Text getText()
subText
Text subText(int start,
int end)
- Parameters:
start - the start index, inclusiveend - the end index, exclusive
getLocation
TextLocation getLocation(int index)
Copyright © 2009-2014 SonarSource. All Rights Reserved.