svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.api / src / main / java / org / gvsig / expressionevaluator / PrettyFormatter.java @ 47734
History | View | Annotate | Download (651 Bytes)
1 |
package org.gvsig.expressionevaluator; |
---|---|
2 |
|
3 |
import org.gvsig.expressionevaluator.spi.PrettyFormaterImpl; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public interface PrettyFormatter { |
10 |
|
11 |
public static PrettyFormatter get(Object x) { |
12 |
if( x instanceof PrettyFormatter ) { |
13 |
return (PrettyFormatter) x;
|
14 |
} |
15 |
return new PrettyFormaterImpl(); |
16 |
} |
17 |
|
18 |
public void setUseNl(boolean useNl); |
19 |
public void setIndentSize(int indentSize); |
20 |
|
21 |
public void indent(); |
22 |
public void unindent(); |
23 |
public void nl(); |
24 |
public void push(); |
25 |
public void pop(); |
26 |
public void append(Object o); |
27 |
public String build(); |
28 |
} |