org.jrubyparser.rewriter.utils
Class ReWriterContext

java.lang.Object
  extended by org.jrubyparser.rewriter.utils.ReWriterContext

public class ReWriterContext
extends Object


Constructor Summary
ReWriterContext(PrintWriter output, String source, FormatHelper formatHelper)
           
ReWriterContext(StringWriter output, String source, FormatHelper formatHelper)
           
 
Method Summary
 void depositHereDocument(String hereDocument)
           
 HereDocument fetchHereDocument()
           
 CallDepth getCallDepth()
           
 FormatHelper getFormatHelper()
           
 Indenter getIndentor()
           
 SourcePosition getLastPosition()
           
 LocalVariables getLocalVariables()
           
 PrintWriter getOutput()
           
 BooleanStateStack getPrintQuotesInString()
           
 String getSource()
           
 boolean hasHereDocument()
           
 boolean isSkipNextNewline()
           
 void setLastPosition(SourcePosition lastPosition)
           
 void setOutput(PrintWriter output)
           
 void setSkipNextNewline(boolean skipNextNewline)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReWriterContext

public ReWriterContext(PrintWriter output,
                       String source,
                       FormatHelper formatHelper)

ReWriterContext

public ReWriterContext(StringWriter output,
                       String source,
                       FormatHelper formatHelper)
Method Detail

getLocalVariables

public LocalVariables getLocalVariables()

getCallDepth

public CallDepth getCallDepth()

getSource

public String getSource()

getIndentor

public Indenter getIndentor()

getLastPosition

public SourcePosition getLastPosition()

setLastPosition

public void setLastPosition(SourcePosition lastPosition)

getPrintQuotesInString

public BooleanStateStack getPrintQuotesInString()

hasHereDocument

public boolean hasHereDocument()

fetchHereDocument

public HereDocument fetchHereDocument()

depositHereDocument

public void depositHereDocument(String hereDocument)

isSkipNextNewline

public boolean isSkipNextNewline()

setSkipNextNewline

public void setSkipNextNewline(boolean skipNextNewline)

getOutput

public PrintWriter getOutput()

setOutput

public void setOutput(PrintWriter output)

getFormatHelper

public FormatHelper getFormatHelper()


Copyright © 2013. All Rights Reserved.