public class PlainText extends AbstractText implements TextCharSequence
Constructor and Description |
---|
PlainText(char[] chars) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
TextLocation |
getLocation(int index) |
Text |
getText() |
protected int |
getTransformationDepth() |
int |
length() |
TextCharSequence |
sequence()
Provides sequential access to characters.
|
TextCharSequence |
subSequence(int from,
int to) |
Text |
subText(int start,
int end) |
void |
toCharArray(int srcPos,
char[] dest,
int destPos,
int length) |
toChars, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
chars, codePoints
public Text subText(int start, int end)
subText
in interface TextCharSequence
start
- the start index, inclusiveend
- the end index, exclusiveprotected int getTransformationDepth()
getTransformationDepth
in class AbstractText
public Text getText()
getText
in interface TextCharSequence
public int length()
length
in interface CharSequence
length
in interface Text
length
in interface TextCharSequence
public void toCharArray(int srcPos, char[] dest, int destPos, int length)
toCharArray
in class AbstractText
public TextCharSequence sequence()
Text
public char charAt(int index)
charAt
in interface CharSequence
charAt
in interface TextCharSequence
public TextCharSequence subSequence(int from, int to)
subSequence
in interface CharSequence
subSequence
in interface TextCharSequence
from
- the start index, inclusiveto
- the end index, exclusivepublic TextLocation getLocation(int index)
getLocation
in interface TextCharSequence
Copyright © 2009–2017 SonarSource. All rights reserved.