Package org.sonar.sslr.internal.text
Class CompositeText
- java.lang.Object
-
- org.sonar.sslr.internal.text.AbstractText
-
- org.sonar.sslr.internal.text.CompositeText
-
- All Implemented Interfaces:
Text
public class CompositeText extends AbstractText
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CompositeText.CompositeTextCharSequence
-
Constructor Summary
Constructors Constructor Description CompositeText(List<AbstractText> texts)
-
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
-
CompositeText
public CompositeText(List<AbstractText> texts)
-
-
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.
-
-