org.sonar.sslr.internal.text
Class CompositeText.CompositeTextCharSequence
java.lang.Object
org.sonar.sslr.internal.text.CompositeText.CompositeTextCharSequence
- All Implemented Interfaces:
- CharSequence, TextCharSequence
- Enclosing class:
- CompositeText
public class CompositeText.CompositeTextCharSequence
- extends Object
- implements TextCharSequence
CompositeText.CompositeTextCharSequence
public CompositeText.CompositeTextCharSequence()
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, inclusiveend - the end index, exclusive
subText
public Text subText(int start,
int end)
- Specified by:
subText in interface TextCharSequence
- Parameters:
start - the start index, inclusiveend - 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.