Class CppLikeDocumentPart
java.lang.Object
com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
com.pnfsoftware.jeb.core.output.code.CppLikeDocumentPart
- All Implemented Interfaces:
ICodeDocument
,ITextDocumentPart
- Direct Known Subclasses:
COutputSink
,JavaOutputSink
Text document part containing code similar to C++ source code (ex: C, Java).
-
Field Summary
FieldsFields inherited from class com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
indentString, paddingString
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
appendMultiLineComment
(String comment, boolean preferBlockComment, boolean appendEOL) void
appendMultiLineCommentAuto
(String comment, boolean preferBlockComment, boolean appendEOL) final void
eol()
Overridden to make sure a hint is added every time we end a line.final void
eol
(ICodeCoordinates coord) End the current line.void
onEolAddComment
(String comment) void
setEolComment
(String comment) void
setEolComment
(String comment, boolean auto) void
void
validate()
Methods inherited from class com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
append, append, append, appendAndRecord, appendAndRecord, appendAndRecord, appendComment, appendComment, appendCommentAuto, appendKeyword, appendKeyword, appendKeyword, appendMulti, appendParameterSeparator, brace, braceClose, bracket, bracketClose, decrementIndentationLevel, disablePadding, enablePadding, enableTokenFlattening, format, getAnchors, getCurrentAnchor, getCurrentCoordinates, getCurrentLine, getCurrentLineCoordinates, getCurrentLineIndex, getCurrentLineLength, getCurrentMarginLength, getCurrentMostPreciseCodeCoordinates, getIndentationLevel, getIndentationString, getLastLineIndex, getLine, getLineCount, getLines, getObjectLocations, incrementIndentationLevel, indentReset, isCurrentLineEmpty, markCurrentPosition, moveLastLine, moveLine, paren, parenClose, prependCodePart, recordCurrentCoordinates, recordLineCoordinates, recordObjectLocation, registerAnchor, registerAnchor, registerKeyword, resetPaddingString, setIndentationLevel, setIndentationString, setPaddingString, setParameterSeparator, space, space, toString, unrecordCurrentCoordinates, unrecordLineCoordinates
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.pnfsoftware.jeb.core.output.text.ITextDocumentPart
getAnchor
-
Field Details
-
commentBlockBegin
-
commentBlockEnd
-
commentInline
-
-
Constructor Details
-
CppLikeDocumentPart
public CppLikeDocumentPart(long baseAnchorId)
-
-
Method Details
-
setEolCoordinates
-
getEolCoordinates
-
setEolComment
-
setEolComment
-
getEolComment
-
onEolAddComment
-
eol
public final void eol()Overridden to make sure a hint is added every time we end a line.- Overrides:
eol
in classCodeDocumentPart
-
eol
Description copied from class:CodeDocumentPart
End the current line.- Overrides:
eol
in classCodeDocumentPart
- Parameters:
coord
- optional chunk coordinates
-
appendMultiLineCommentAuto
public void appendMultiLineCommentAuto(String comment, boolean preferBlockComment, boolean appendEOL) -
appendMultiLineComment
-
validate
public void validate()- Overrides:
validate
in classCodeDocumentPart
-