Package | Description |
---|---|
net.sourceforge.jenesis4java | |
net.sourceforge.jenesis4java.impl | |
net.sourceforge.jenesis4java.impl.util |
Modifier and Type | Method and Description |
---|---|
CodeWriter |
CodeWriter.dedentLine()
Decrements the tab and makes sure, a new line is started.
|
CodeWriter |
CodeWriter.ensureNewLine()
Starts a new line, if characters are present on the current line.
|
CodeWriter |
CodeWriter.indentLine()
Increments the tab and ensures that current line is empty.
|
CodeWriter |
CodeWriter.newLine()
Adds a the newLine string according to
System.getProperty("line.separator") and the line is padded with
the n tab characters where n is the number returned by
getIndentNumber() . |
CodeWriter |
CodeWriter.queue(Comment comment)
This method allows those codeable objects to inject a comment without
interrupting the line-by-line code itself.
|
CodeWriter |
CodeWriter.resetLine()
Resets the tab counter to zero and calls the newLine() method.
|
CodeWriter |
CodeWriter.space()
Writes a single space.
|
static CodeWriter |
Access.AccessType.toCode(Access.AccessType accesstype,
CodeWriter out) |
CodeWriter |
Access.AccessType.toCode(CodeWriter out) |
CodeWriter |
Codeable.toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
CodeWriter |
CodeWriter.write(boolean b)
Writes a boolean.
|
CodeWriter |
CodeWriter.write(char c)
Writes a single character.
|
CodeWriter |
CodeWriter.write(char[] chars)
Writes an array of characters.
|
CodeWriter |
CodeWriter.write(char[] chars,
int off,
int len)
Writes an array of characters starting at the offset with total length
len.
|
CodeWriter |
CodeWriter.write(Codeable codeable)
Instead of calling the
Object.toString() method, the
Object.toCode(CodeWriter) method is invoked with this as
the argument. |
CodeWriter |
CodeWriter.write(Codeable[] codeables)
Iterates the array and sends each element to
write(Codeable) . |
CodeWriter |
CodeWriter.write(double d)
Writes a double.
|
CodeWriter |
CodeWriter.write(float f)
Writes a float.
|
CodeWriter |
CodeWriter.write(int i)
Writes an integer.
|
CodeWriter |
CodeWriter.write(List<? extends Codeable> codeables)
Iterates the array and sends each element to
write(Codeable) . |
CodeWriter |
CodeWriter.write(Object o)
Writes an object.
|
CodeWriter |
CodeWriter.write(String s)
Writes a string.
|
Modifier and Type | Method and Description |
---|---|
static CodeWriter |
Access.AccessType.toCode(Access.AccessType accesstype,
CodeWriter out) |
CodeWriter |
Access.AccessType.toCode(CodeWriter out) |
CodeWriter |
Codeable.toCode(CodeWriter out)
Renders the codeable object to the given writer and returns it.
|
Modifier and Type | Class and Description |
---|---|
class |
MCodeWriter
Standard
CodeWriter implementation. |
Modifier and Type | Method and Description |
---|---|
CodeWriter |
MCodeWriter.dedentLine()
Decrements the tab and makes sure, a new line is started.
|
CodeWriter |
MCodeWriter.ensureNewLine() |
CodeWriter |
MCodeWriter.indentLine()
Increments the tab and ensures an empty line.
|
CodeWriter |
MCodeWriter.newLine()
Adds a the newLine string according to
System.getProperty("line.separator") and the line is padded
with the n tab characters where n is the number returned by
getIndentNumber() . |
CodeWriter |
MCodeWriter.resetLine()
Resets the tab counter to zero and calls the newLine() method.
|
CodeWriter |
MCodeWriter.space()
Writes a single space.
|
CodeWriter |
MExpression.toCode(CodeWriter out) |
CodeWriter |
MLambda.toCode(CodeWriter out) |
CodeWriter |
MType.toCode(CodeWriter out) |
CodeWriter |
MLiteral.toCode(CodeWriter out) |
CodeWriter |
MExpression.toCode2(CodeWriter out) |
CodeWriter |
MCodeWriter.write(boolean b)
Writes a boolean.
|
CodeWriter |
MCodeWriter.write(char c)
Writes a single character.
|
CodeWriter |
MCodeWriter.write(char[] chars)
Writes an array of characters.
|
CodeWriter |
MCodeWriter.write(char[] chars,
int off,
int len)
Writes an array of characters.
|
CodeWriter |
MCodeWriter.write(Codeable ico)
Instead of calling the
Object.toString() method, the
Object.toCode(public CodeWriter) method is invoked with
this as the argument. |
CodeWriter |
MCodeWriter.write(Codeable[] aico)
Iterates the array and sends each element to
write(Codeable) . |
CodeWriter |
MCodeWriter.write(double d)
Writes a double.
|
CodeWriter |
MCodeWriter.write(float f)
Writes a float.
|
CodeWriter |
MCodeWriter.write(int i)
Writes an integer.
|
CodeWriter |
MCodeWriter.write(List<? extends Codeable> codeables) |
CodeWriter |
MCodeWriter.write(Object o)
Writes an object.
|
CodeWriter |
MCodeWriter.write(String s)
Writes a string.
|
Modifier and Type | Method and Description |
---|---|
CodeWriter |
MExpression.toCode(CodeWriter out) |
CodeWriter |
MLambda.toCode(CodeWriter out) |
CodeWriter |
MType.toCode(CodeWriter out) |
CodeWriter |
MLiteral.toCode(CodeWriter out) |
CodeWriter |
MExpression.toCode2(CodeWriter out) |
Modifier and Type | Method and Description |
---|---|
void |
BlockStyle.toCode(CodeWriter out,
List<? extends Codeable> codeables,
Comment inlineComment)
Sets an List of codeables to write as a block.
|
Copyright © 2000–2018 jenesis4java. All rights reserved.