|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnl.tudelft.tbm.eeni.owl2java.formatter.CodeFormatter
public class CodeFormatter
Wrapper class for Eclipse JDT code formatter
| Constructor Summary | |
|---|---|
CodeFormatter()
Constructor for CodeFormatter with default options |
|
CodeFormatter(Properties formatterSettings)
Constructor for CodeFormatter with given settings; if given null, loads default formatter settings |
|
| Method Summary | |
|---|---|
String |
format(String code)
Formats source code using current formatter settings |
Properties |
getFormatterSettings()
Returns a Properties object representing containing all the code formatter options |
void |
setFormatterSettings(Properties formatterSettings)
Sets the formatter options; if given null, reverts to default formatter options |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CodeFormatter()
public CodeFormatter(Properties formatterSettings)
| Method Detail |
|---|
public String format(String code)
public Properties getFormatterSettings()
public void setFormatterSettings(Properties formatterSettings)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||