Package com.sun.tools.corba.ee.idl
Class Comment
java.lang.Object
com.sun.tools.corba.ee.idl.Comment
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generate
(String indent, PrintWriter printStream) Writes comment text to the specified print stream in the appropriate format.private void
print
(String indent, PrintWriter stream) Writes comment to the specified print stream without altering its format.private void
printCBlock
(String indent, PrintWriter stream) Writes comment in c-block-style to the specified print stream.private void
printCppLine
(String indent, PrintWriter stream) Writes a line comment to the specified print stream.private void
printJavaDoc
(String indent, PrintWriter stream) Writes comment in JavaDoc-style to the specified print stream.private int
Returns the comment style of a string.text()
Returns comment textvoid
Sets comment textvoid
write()
Writes comment text to standard output (debug).
-
Field Details
-
UNKNOWN
static final int UNKNOWN- See Also:
-
JAVA_DOC
static final int JAVA_DOC- See Also:
-
C_BLOCK
static final int C_BLOCK- See Also:
-
CPP_LINE
static final int CPP_LINE- See Also:
-
_eol
-
_text
-
_style
private int _style
-
-
Constructor Details
-
Comment
Comment() -
Comment
Comment(String text)
-
-
Method Details
-
text
Sets comment text -
text
Returns comment text- Returns:
- comment text
-
style
Returns the comment style of a string.- Parameters:
text
- text to check the style of- Returns:
- -1 =Unknown, 0 = Javadoc, 1 = Comment block, 2= Comment Line
-
write
public void write()Writes comment text to standard output (debug). -
generate
Writes comment text to the specified print stream in the appropriate format.- Parameters:
indent
- string to print at the start of each line.null
is equivalent to an empty string.printStream
- stream to write text to
-
print
Writes comment to the specified print stream without altering its format. This routine does not alter vertical or horizontal spacing of comment text, thus, it only works well for comments with a non-indented first line. -
printJavaDoc
Writes comment in JavaDoc-style to the specified print stream. -
printCBlock
Writes comment in c-block-style to the specified print stream. -
printCppLine
Writes a line comment to the specified print stream.
-