public abstract class Formatter extends Object
| Constructor and Description |
|---|
Formatter() |
| Modifier and Type | Method and Description |
|---|---|
static Properties |
applyShadedPackageName(Properties config) |
static void |
format(File source)
Format the given Java source
File, using the built in code format style. |
static void |
format(File prefs,
File source)
|
static String |
format(JavaClassSource javaClass)
Format the given
JavaClassSource, using the built in code format style. |
static String |
format(Properties prefs,
JavaClassSource javaClass)
Format the given
JavaClassSource, using the given Eclipse code format Properties. |
static String |
format(Properties prefs,
String source)
Format the given
String as a Java source type, using the given Eclipse code format Properties. |
static String |
format(String source)
Format the given
String as a Java source file, using the built in code format style. |
public static void format(File source) throws IOException
File, using the built in code format style.IOException - When the file cannot be read or writtenpublic static void format(File prefs, File source) throws IOException
IOException - When the file cannot be read or written, or the preferences cannot be read.public static String format(JavaClassSource javaClass)
JavaClassSource, using the built in code format style.public static String format(Properties prefs, JavaClassSource javaClass)
JavaClassSource, using the given Eclipse code format Properties.public static String format(String source)
String as a Java source file, using the built in code format style.public static String format(Properties prefs, String source)
String as a Java source type, using the given Eclipse code format Properties.public static Properties applyShadedPackageName(Properties config)
Copyright © 2017 JBoss by Red Hat. All rights reserved.