Interface ICodeDocument
- All Known Implementing Classes:
CodeDocumentPart,COutputSink,CppLikeDocumentPart,JavaOutputSink
public interface ICodeDocument
Minimal set of functionalities offered by code documents.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAppend raw text.voidappend(String str, ItemClassIdentifiers classId) Append text tagged with a class identifier.default voidappendKeyword(String keyword) Convenience method.voidbrace()Append an opening brace.voidAppend a closing brace.voidbracket()Append an opening bracket.voidAppend a closing bracket.voidparen()Append an opening parenthesis.voidAppend a closing parenthesis.
-
Method Details
-
append
Append raw text.- Parameters:
str- text to append
-
append
Append text tagged with a class identifier.- Parameters:
str- text to appendclassId- item class identifier to associate with the appended text
-
appendKeyword
Convenience method.- Parameters:
keyword- keyword text to append
-
paren
void paren()Append an opening parenthesis. -
parenClose
void parenClose()Append a closing parenthesis. -
brace
void brace()Append an opening brace. -
braceClose
void braceClose()Append a closing brace. -
bracket
void bracket()Append an opening bracket. -
bracketClose
void bracketClose()Append a closing bracket.
-