org.sonar.sslr.internal.text
Class CompositeText

java.lang.Object
  extended by org.sonar.sslr.internal.text.AbstractText
      extended by org.sonar.sslr.internal.text.CompositeText
All Implemented Interfaces:
Text

public class CompositeText
extends AbstractText


Nested Class Summary
 class CompositeText.CompositeTextCharSequence
           
 
Constructor Summary
CompositeText(List<AbstractText> texts)
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class AbstractText

getTransformationDepth

protected int getTransformationDepth()
Specified by:
getTransformationDepth in class AbstractText

sequence

public TextCharSequence sequence()
Description copied from interface: Text
Provides sequential access to characters.



Copyright © 2009-2014 SonarSource. All Rights Reserved.