Package org.sonar.sslr.internal.matchers
Class LocatedText
- java.lang.Object
-
- org.sonar.sslr.internal.matchers.LocatedText
-
- All Implemented Interfaces:
CharSequence
public class LocatedText extends Object implements CharSequence
-
-
Constructor Summary
Constructors Constructor Description LocatedText(File file, char[] chars)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)intlength()CharSequencesubSequence(int from, int to)char[]toChars()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
length
public int length()
- Specified by:
lengthin interfaceCharSequence
-
toChars
public char[] toChars()
-
charAt
public char charAt(int index)
- Specified by:
charAtin interfaceCharSequence
-
subSequence
public CharSequence subSequence(int from, int to)
- Specified by:
subSequencein interfaceCharSequence
-
toString
public String toString()
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
-