com.spidasoftware.EclipseFormatter
Class GroovyFormat

java.lang.Object
  extended by com.spidasoftware.EclipseFormatter.Format
      extended by com.spidasoftware.EclipseFormatter.GroovyFormat

public class GroovyFormat
extends Format

The GroovyFormat class that will format groovy source code using the formatter classes from the Groovy-Eclipse open source project.

Author:
Nicholas Joodi

Field Summary
 
Fields inherited from class com.spidasoftware.EclipseFormatter.Format
correctlyFormatted
 
Constructor Summary
GroovyFormat()
          A no argument constructor that will create a GroovyFormat object.
 
Method Summary
 void format(String fileName, String code)
          A two-argument method that will take two strings, a fileName and its respective code and format the code.
 
Methods inherited from class com.spidasoftware.EclipseFormatter.Format
isFormatted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroovyFormat

public GroovyFormat()
A no argument constructor that will create a GroovyFormat object.

Method Detail

format

public void format(String fileName,
                   String code)
Description copied from class: Format
A two-argument method that will take two strings, a fileName and its respective code and format the code.

Specified by:
format in class Format
Parameters:
fileName - The name of that file.
code - The string of code that will be formatted.


Copyright © 2013. All rights reserved.