public class

CppLikeDocumentPart

extends CodeDocumentPart
java.lang.Object
   ↳ com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
     ↳ com.pnfsoftware.jeb.core.output.code.CppLikeDocumentPart
Known Direct Subclasses

Class Overview

Text document part containing code similar to C++ source code (ex: C, Java).

Summary

Fields
protected String commentBlockBegin
protected String commentBlockEnd
protected String commentInline
[Expand]
Inherited Fields
From class com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
Public Constructors
CppLikeDocumentPart(long baseAnchorId)
Public Methods
void 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.
String getEolComment()
ICodeCoordinates getEolCoordinates()
void onEolAddComment(String comment)
void setEolComment(String comment)
void setEolComment(String comment, boolean auto)
void setEolCoordinates(ICodeCoordinates coord)
void validate()
[Expand]
Inherited Methods
From class com.pnfsoftware.jeb.core.output.code.CodeDocumentPart
From class java.lang.Object
From interface com.pnfsoftware.jeb.core.output.code.ICodeDocument
From interface com.pnfsoftware.jeb.core.output.text.ITextDocumentPart

Fields

protected String commentBlockBegin

protected String commentBlockEnd

protected String commentInline

Public Constructors

public CppLikeDocumentPart (long baseAnchorId)

Public Methods

public void appendMultiLineComment (String comment, boolean preferBlockComment, boolean appendEOL)

public void appendMultiLineCommentAuto (String comment, boolean preferBlockComment, boolean appendEOL)

public final void eol ()

Overridden to make sure a hint is added every time we end a line.

public final void eol (ICodeCoordinates coord)

End the current line.

Parameters
coord optional chunk coordinates

public String getEolComment ()

public ICodeCoordinates getEolCoordinates ()

public void onEolAddComment (String comment)

public void setEolComment (String comment)

public void setEolComment (String comment, boolean auto)

public void setEolCoordinates (ICodeCoordinates coord)

public void validate ()