Package | Description |
---|---|
io.vertx.codegen.writer |
Modifier and Type | Method and Description |
---|---|
CodeWriter |
CodeWriter.append(char c) |
CodeWriter |
CodeWriter.append(CharSequence csq) |
CodeWriter |
CodeWriter.append(CharSequence csq,
int start,
int end) |
CodeWriter |
CodeWriter.code(String string)
Print the specified
string with an indent prefix. |
CodeWriter |
CodeWriter.codeln(String line)
Print the specified
line with an indent prefix and end with a new line char. |
CodeWriter |
CodeWriter.format(Locale l,
String format,
Object... args) |
CodeWriter |
CodeWriter.format(String format,
Object... args) |
CodeWriter |
CodeWriter.indent()
Increment the current indentation.
|
CodeWriter |
CodeWriter.indented(Runnable block) |
CodeWriter |
CodeWriter.indentSize(int size)
Set the current indentation size, this can only be done when the current indentation is
0 . |
CodeWriter |
CodeWriter.javaImport(String name)
Append the
name as a java package import. |
CodeWriter |
CodeWriter.newLine()
Print a new line char.
|
CodeWriter |
CodeWriter.stmt(String statement)
This function prints an indentation before the
statement and a semicolon followed by a newline
after. |
CodeWriter |
CodeWriter.unindent()
Decrement the current indentation.
|
CodeWriter |
CodeWriter.writeSeq(Stream<String> sequence,
String delimiter)
Write a
sequence delimited by a delimiter . |
Copyright © 2021 Eclipse. All rights reserved.