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 null
void symbol(String symbol)
symbol
- the symbol stringIllegalArgumentException
- if the parameter is null
void immediate(String immediate)
immediate
- the stringIllegalArgumentException
- if the parameter is null
void operator(String symbol)
symbol
- the operator symbolIllegalArgumentException
- if the parameter is null
void separator(String symbol)
symbol
- the separator symbolIllegalArgumentException
- if the parameter is null
void 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 null
void classBlock(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void arrayInitializerBlock(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void statementBlock(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void switchLabel(EmitDirection direction)
switch
label block.direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void statement(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void declaration(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void docComment(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void docBlock(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void docInlineBlock(EmitDirection direction)
direction
- indicates either begin or endIllegalArgumentException
- if the parameter is null
void putBlockComment(List<String> contents)
contents
- contents of the commentIllegalArgumentException
- if the parameter is null
void putLineComment(String content)
content
- contents of the commentIllegalArgumentException
- if the parameter is null
void putInlineComment(String content)
content
- contents of the commentIllegalArgumentException
- if the parameter is null
Copyright © 2011–2019 Asakusa Framework Team. All rights reserved.