public abstract class CDFormatter
extends java.lang.Object
Constructor and Description |
---|
CDFormatter(java.io.Writer writer) |
Modifier and Type | Method and Description |
---|---|
CDFormatter |
declare(CDVariable v)
Outputs VariableDeclaration as a declaration.
|
CDFormatter |
eos()
Marks the end of a statement.
|
CDFormatter |
express(CDExpression exp)
Prints expression.
|
CDFormatter |
in()
Indent.
|
CDFormatter |
nl()
Clears the current line and this method also prints indentation.
|
CDFormatter |
out()
Unindent.
|
CDFormatter |
p(char ch)
Outputs a new token.
|
CDFormatter |
p(java.lang.String token)
Outputs a new token.
|
CDFormatter |
state(CDStatement s)
Prints a statement.
|
CDFormatter |
type(CDType t)
Outputs a type object.
|
abstract CDFormatter |
write(CDLanguageSpecificString str)
Outputs a language specific string.
|
public CDFormatter in()
public CDFormatter out()
public CDFormatter nl() throws java.io.IOException
java.io.IOException
public CDFormatter p(java.lang.String token) throws java.io.IOException
java.io.IOException
public CDFormatter p(char ch) throws java.io.IOException
java.io.IOException
public CDFormatter express(CDExpression exp) throws java.io.IOException
java.io.IOException
public CDFormatter state(CDStatement s) throws java.io.IOException
java.io.IOException
public final CDFormatter type(CDType t) throws java.io.IOException
java.io.IOException
public final CDFormatter declare(CDVariable v) throws java.io.IOException
java.io.IOException
public abstract CDFormatter write(CDLanguageSpecificString str) throws java.io.IOException
java.io.IOException
public CDFormatter eos() throws java.io.IOException
java.io.IOException