|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrelaxngcc.codedom.CDFormatter
public abstract class CDFormatter
Formats a code DOM and produces a source code. This object controls the formatting (such as indentation) and handles language-specific construct.
Constructor Summary | |
---|---|
CDFormatter(java.io.Writer writer)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CDFormatter(java.io.Writer writer)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |