public interface EmitContext
Model objects.| Modifier and Type | Method and Description |
|---|---|
void |
arrayInitializerBlock(EmitDirection direction)
Emits a begin or end of an array initializer block.
|
void |
blockPadding()
Emits a block padding.
|
void |
classBlock(EmitDirection direction)
Emits a begin or end of a class block.
|
void |
comment(int location,
String content)
Registers a comment.
|
void |
declaration(EmitDirection direction)
Emits a begin or end of a type or member declaration.
|
void |
docBlock(EmitDirection direction)
Emits a begin or end of a block in documentation comments.
|
void |
docComment(EmitDirection direction)
Emits a begin or end of a documentation comment.
|
void |
docInlineBlock(EmitDirection direction)
Emits a begin or end of an inline block in documentation comments.
|
void |
flushComments()
Flushes the previously registered comments.
|
void |
flushComments(int location)
Flushes the previously registered comments before the specified character position.
|
void |
immediate(String immediate)
Emits a normal text.
|
void |
keyword(String keyword)
Emits a keyword.
|
void |
operator(String symbol)
Emits an operator symbol.
|
void |
padding()
Emits a padding.
|
void |
putBlockComment(List<String> contents)
Adds a block comment.
|
void |
putInlineComment(String content)
Puts an inline comment.
|
void |
putLineComment(String content)
Puts a line comment.
|
void |
separator(String symbol)
Emits a separator symbol.
|
void |
statement(EmitDirection direction)
Emits a begin or end of a statement.
|
void |
statementBlock(EmitDirection direction)
Emits a begin or end of a statement block.
|
void |
switchLabel(EmitDirection direction)
Emits a begin or end of a
switch label block. |
void |
symbol(String symbol)
Emits a symbol.
|
void flushComments()
comment(int, String)void flushComments(int location)
location - the character position (exclusive)comment(int, String)void keyword(String keyword)
keyword - the keyword stringIllegalArgumentException - if the parameter is nullvoid symbol(String symbol)
symbol - the symbol stringIllegalArgumentException - if the parameter is nullvoid immediate(String immediate)
immediate - the stringIllegalArgumentException - if the parameter is nullvoid operator(String symbol)
symbol - the operator symbolIllegalArgumentException - if the parameter is nullvoid separator(String symbol)
symbol - the separator symbolIllegalArgumentException - if the parameter is nullvoid padding()
void blockPadding()
void comment(int location,
String content)
flushComments(int).location - the character position of the commentcontent - contents of the commentIllegalArgumentException - if the parameter is nullvoid classBlock(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid arrayInitializerBlock(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid statementBlock(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid switchLabel(EmitDirection direction)
switch label block.direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid statement(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid declaration(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid docComment(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid docBlock(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid docInlineBlock(EmitDirection direction)
direction - indicates either begin or endIllegalArgumentException - if the parameter is nullvoid putBlockComment(List<String> contents)
contents - contents of the commentIllegalArgumentException - if the parameter is nullvoid putLineComment(String content)
content - contents of the commentIllegalArgumentException - if the parameter is nullvoid putInlineComment(String content)
content - contents of the commentIllegalArgumentException - if the parameter is nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.