org.sonar.sslr.internal.text
Class AbstractText

java.lang.Object
  extended by org.sonar.sslr.internal.text.AbstractText
All Implemented Interfaces:
Text
Direct Known Subclasses:
CompositeText, PlainText, SubText, TransformedText

public abstract class AbstractText
extends Object
implements Text

Base class for all implementations of Text.


Constructor Summary
AbstractText()
           
 
Method Summary
protected abstract  int getTransformationDepth()
           
abstract  void toCharArray(int srcPos, char[] dest, int destPos, int length)
           
 char[] toChars()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.sonar.sslr.text.Text
length, sequence
 

Constructor Detail

AbstractText

public AbstractText()
Method Detail

getTransformationDepth

protected abstract int getTransformationDepth()

toChars

public char[] toChars()

toCharArray

public abstract void toCharArray(int srcPos,
                                 char[] dest,
                                 int destPos,
                                 int length)

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2014 SonarSource. All Rights Reserved.