Package org.sonar.sslr.internal.text
Class SubText
- java.lang.Object
-
- org.sonar.sslr.internal.text.AbstractText
-
- org.sonar.sslr.internal.text.SubText
-
- All Implemented Interfaces:
Text
public class SubText extends AbstractText
-
-
Constructor Summary
Constructors Constructor Description SubText(AbstractText text, int start, int end)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected int
getTransformationDepth()
int
length()
TextCharSequence
sequence()
Provides sequential access to characters.void
toCharArray(int srcPos, char[] dest, int destPos, int length)
-
Methods inherited from class org.sonar.sslr.internal.text.AbstractText
toChars, toString
-
-
-
-
Constructor Detail
-
SubText
public SubText(AbstractText text, int start, int end)
-
-
Method Detail
-
length
public int length()
- Returns:
- the number of characters in this text
-
toCharArray
public void toCharArray(int srcPos, char[] dest, int destPos, int length)
- Specified by:
toCharArray
in classAbstractText
-
getTransformationDepth
protected int getTransformationDepth()
- Specified by:
getTransformationDepth
in classAbstractText
-
sequence
public TextCharSequence sequence()
Description copied from interface:Text
Provides sequential access to characters.
-
-