org.sonar.sslr.internal.text
Class SubText

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

public class SubText
extends AbstractText


Constructor Summary
SubText(AbstractText text, int start, int end)
           
 
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

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 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.