com.spidasoftware.EclipseFormatter
Class JavaFormat

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

public class JavaFormat
extends Format

The JavaFormat class that will format java source code using the formatter classes from the Eclipse api.

Author:
Nicholas Joodi

Field Summary
 
Fields inherited from class com.spidasoftware.EclipseFormatter.Format
correctlyFormatted
 
Constructor Summary
JavaFormat()
          A no argument constructor that will create a JavaFormat 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

JavaFormat

public JavaFormat()
A no argument constructor that will create a JavaFormat 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.