com.spidasoftware.EclipseFormatter
Class JavaFormat
java.lang.Object
com.spidasoftware.EclipseFormatter.Format
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JavaFormat
public JavaFormat()
- A no argument constructor that will create a JavaFormat object.
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.