|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentLine
org.aspectj.org.eclipse.jdt.internal.formatter.comment.SingleCommentLine
public class SingleCommentLine
Single-line comment line in a comment region.
| Field Summary | |
|---|---|
static java.lang.String |
SINGLE_COMMENT_PREFIX
Line prefix for single line comments |
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentLine |
|---|
NON_FORMAT_START_PREFIX |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.formatter.comment.IBorderAttributes |
|---|
BORDER_LOWER, BORDER_UPPER |
| Constructor Summary | |
|---|---|
protected |
SingleCommentLine(CommentRegion region)
Creates a new single-line comment line. |
| Method Summary | |
|---|---|
protected void |
adapt(CommentLine previous)
Adapts the line attributes from the previous line in the comment region. |
protected void |
formatLowerBorder(CommentRange range,
java.lang.String indentation,
int length)
Formats this comment line as end line having a lower border consisting of content line prefixes. |
protected void |
formatUpperBorder(CommentRange range,
java.lang.String indentation,
int length)
Formats this comment line as start line having an upper border consisting of content line prefixes. |
protected java.lang.String |
getContentPrefix()
Returns the line prefix of content lines. |
protected java.lang.String |
getEndingPrefix()
Returns the line prefix of end lines. |
protected java.lang.String |
getStartingPrefix()
Returns the line prefix of start lines. |
protected void |
scanLine(int line)
Scans this comment line for comment range boundaries. |
protected void |
tokenizeLine(int line)
Tokenizes this comment line into comment ranges |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentLine |
|---|
append, formatLine, getFirst, getIndentationReference, getLast, getParent, getSize, hasAttribute, setAttribute, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SINGLE_COMMENT_PREFIX
| Constructor Detail |
|---|
protected SingleCommentLine(CommentRegion region)
region - comment region to create the line for| Method Detail |
|---|
protected void adapt(CommentLine previous)
CommentLine
adapt in class CommentLineprevious - the previous comment line in the comment region
protected void formatLowerBorder(CommentRange range,
java.lang.String indentation,
int length)
CommentLine
formatLowerBorder in class CommentLinerange - last comment range of the last comment line in the
comment regionindentation - the indentation of the comment regionlength - the maximal length of text in this comment region
measured in average character widths
protected void formatUpperBorder(CommentRange range,
java.lang.String indentation,
int length)
CommentLine
formatUpperBorder in class CommentLinerange - the first comment range in the comment regionindentation - the indentation of the comment regionlength - the maximal length of text in this comment region
measured in average character widthsprotected java.lang.String getContentPrefix()
CommentLine
getContentPrefix in class CommentLineprotected java.lang.String getEndingPrefix()
CommentLine
getEndingPrefix in class CommentLineprotected java.lang.String getStartingPrefix()
CommentLine
getStartingPrefix in class CommentLineprotected void scanLine(int line)
CommentLine
scanLine in class CommentLineline - the index of this line in the comment regionprotected void tokenizeLine(int line)
CommentLine
tokenizeLine in class CommentLineline - the index of this line in the comment region
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||