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, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringchars, codePointspublic Text subText(int start, int end)
subText in interface TextCharSequencestart - the start index, inclusiveend - the end index, exclusiveprotected int getTransformationDepth()
getTransformationDepth in class AbstractTextpublic Text getText()
getText in interface TextCharSequencepublic int length()
length in interface CharSequencelength in interface Textlength in interface TextCharSequencepublic void toCharArray(int srcPos,
char[] dest,
int destPos,
int length)
toCharArray in class AbstractTextpublic TextCharSequence sequence()
Textpublic char charAt(int index)
charAt in interface CharSequencecharAt in interface TextCharSequencepublic TextCharSequence subSequence(int from, int to)
subSequence in interface CharSequencesubSequence in interface TextCharSequencefrom - the start index, inclusiveto - the end index, exclusivepublic TextLocation getLocation(int index)
getLocation in interface TextCharSequenceCopyright © 2009–2018 SonarSource. All rights reserved.