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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidappendMultiLineComment(String comment, boolean preferBlockComment, boolean appendEOL) voidappendMultiLineCommentAuto(String comment, boolean preferBlockComment, boolean appendEOL) final voideol()Overridden to make sure a hint is added every time we end a line.final voideol(ICodeCoordinates coord) End the current line.voidonEolAddComment(String comment) voidsetEolComment(String comment) voidsetEolComment(String comment, boolean auto) voidvoidvalidate()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, getAnchor, getAnchors, getCountOfAnchors, getCountOfLines, 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
-
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:
eolin classCodeDocumentPart
-
eol
Description copied from class:CodeDocumentPartEnd the current line.- Overrides:
eolin classCodeDocumentPart- Parameters:
coord- optional chunk coordinates
-
appendMultiLineCommentAuto
public void appendMultiLineCommentAuto(String comment, boolean preferBlockComment, boolean appendEOL) -
appendMultiLineComment
-
validate
public void validate()- Overrides:
validatein classCodeDocumentPart
-