org.acm.seguin.ide.elixir
Class ElixirPrettyPrinter

java.lang.Object
  extended by org.acm.seguin.pretty.PrettyPrintFile
      extended by org.acm.seguin.pretty.PrettyPrintString
          extended by org.acm.seguin.pretty.PrettyPrintFromIDE
              extended by org.acm.seguin.ide.elixir.ElixirPrettyPrinter

public class ElixirPrettyPrinter
extends PrettyPrintFromIDE

Pretty printer for the elixir editor.

Author:
Chris Seguin

Constructor Summary
ElixirPrettyPrinter()
          Create an ElixirPrettyPrinter object
 
Method Summary
protected  int getLineNumber()
          Returns the initial line number
protected  java.lang.String getOutputBuffer()
          Get the output buffer
protected  java.lang.String getStringFromIDE()
          Gets the initial string from the IDE
static void prettyPrint()
          Reformats the current source code
static void prettyPrintConfig()
          Description of the Method
 java.lang.String removeCR(java.lang.String input)
          Remove \r from buffer
protected  void setLineNumber(int value)
          Sets the line number
protected  void setStringInIDE(java.lang.String value)
          Sets the string in the IDE
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFromIDE
getPrintData, prettyPrintCurrentWindow
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintString
getWriter, resetOutputBuffer, setInputString
 
Methods inherited from class org.acm.seguin.pretty.PrettyPrintFile
apply, apply, getParserFactory, isApplicable, postApply, setAsk, setParserFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElixirPrettyPrinter

public ElixirPrettyPrinter()
Create an ElixirPrettyPrinter object

Method Detail

setLineNumber

protected void setLineNumber(int value)
Sets the line number

Specified by:
setLineNumber in class PrettyPrintFromIDE
Parameters:
value - The new LineNumber value

setStringInIDE

protected void setStringInIDE(java.lang.String value)
Sets the string in the IDE

Specified by:
setStringInIDE in class PrettyPrintFromIDE
Parameters:
value - The new file contained in a string

getLineNumber

protected int getLineNumber()
Returns the initial line number

Specified by:
getLineNumber in class PrettyPrintFromIDE
Returns:
The LineNumber value

getOutputBuffer

protected java.lang.String getOutputBuffer()
Get the output buffer

Overrides:
getOutputBuffer in class PrettyPrintString
Returns:
a string containing the results

getStringFromIDE

protected java.lang.String getStringFromIDE()
Gets the initial string from the IDE

Specified by:
getStringFromIDE in class PrettyPrintFromIDE
Returns:
The file in string format

prettyPrint

public static void prettyPrint()
Reformats the current source code


prettyPrintConfig

public static void prettyPrintConfig()
Description of the Method


removeCR

public java.lang.String removeCR(java.lang.String input)
Remove \r from buffer

Parameters:
input - Description of Parameter
Returns:
a string containing the results