ICodeGenVisitor
Ecng.ComponentModel
Code generation visitor.
プロパティ
CurrIndent
public int CurrIndent { get; }
value = iCodeGenVisitor.CurrIndent
Gets the current indentation level in characters.
メソッド
Add
public ICodeGenVisitor Add(string text)
result = iCodeGenVisitor.Add(text)
Adds the specified text without a newline.
- text
- The text to add.
戻り値: The current instance of ICodeGenVisitor.
AddLine
public ICodeGenVisitor AddLine(string line)
result = iCodeGenVisitor.AddLine(line)
Adds a line of code with the current indentation.
- line
- The code line to add.
戻り値: The current instance of ICodeGenVisitor.
AddWithIndent
public ICodeGenVisitor AddWithIndent(string text)
result = iCodeGenVisitor.AddWithIndent(text)
Adds the specified text with the current indentation and without a newline.
- text
- The text to add.
戻り値: The current instance of ICodeGenVisitor.
ChangeIndent
public ICodeGenVisitor ChangeIndent(bool increase)
result = iCodeGenVisitor.ChangeIndent(increase)
Changes the current indentation level.
- increase
- If set to true, increases the indentation; otherwise, decreases it.
戻り値: The current instance of ICodeGenVisitor.