|
|||||||||
| 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.MultiCommentLine
public class MultiCommentLine
Multi-line comment line in a comment region.
| Field Summary | |
|---|---|
static java.lang.String |
MULTI_COMMENT_CONTENT_PREFIX
Line prefix of multi-line comment content lines |
static java.lang.String |
MULTI_COMMENT_END_PREFIX
Line prefix of multi-line comment end lines |
static java.lang.String |
MULTI_COMMENT_START_PREFIX
Line prefix of multi-line comment content lines |
| 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.ICommentAttributes |
|---|
COMMENT_BLANKLINE, COMMENT_BREAK, COMMENT_CLOSE, COMMENT_CODE, COMMENT_FIRST_TOKEN, COMMENT_HTML, COMMENT_IMMUTABLE, COMMENT_NEWLINE, COMMENT_OPEN, COMMENT_PARAGRAPH, COMMENT_PARAMETER, COMMENT_ROOT, COMMENT_SEPARATOR, COMMENT_STARTS_WITH_RANGE_DELIMITER |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.formatter.comment.IHtmlTagDelimiters |
|---|
HTML_CLOSE_PREFIX, HTML_TAG_POSTFIX, HTML_TAG_PREFIX |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.formatter.comment.IJavaDocTagConstants |
|---|
COMMENT_ROOT_TAGS, COMMENT_TAG_PREFIX, JAVADOC_BREAK_TAGS, JAVADOC_CODE_TAGS, JAVADOC_IMMUTABLE_TAGS, JAVADOC_NEWLINE_TAGS, JAVADOC_PARAM_TAGS, JAVADOC_SEPARATOR_TAGS, JAVADOC_SINGLE_BREAK_TAG, JAVADOC_TAG_PREFIX, LINK_TAG_POSTFIX, LINK_TAG_PREFIX, LINK_TAG_PREFIX_STRING |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.formatter.comment.IBorderAttributes |
|---|
BORDER_LOWER, BORDER_UPPER |
| Constructor Summary | |
|---|---|
protected |
MultiCommentLine(CommentRegion region)
Creates a new multi-line comment line. |
| Method Summary | |
|---|---|
protected void |
adapt(CommentLine previous)
Adapts the line attributes from the previous line in the comment region. |
protected void |
append(CommentRange range)
Appends the specified comment range to this comment line. |
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 |
getIndentationReference()
Returns the reference indentation to use for this line. |
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 |
protected IRegion |
trimLine(java.lang.String line,
java.lang.String trimmable)
Removes all leading and trailing occurrences from line. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentLine |
|---|
formatLine, formatLowerBorder, formatUpperBorder, getFirst, 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 MULTI_COMMENT_CONTENT_PREFIX
public static final java.lang.String MULTI_COMMENT_END_PREFIX
public static final java.lang.String MULTI_COMMENT_START_PREFIX
| Constructor Detail |
|---|
protected MultiCommentLine(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 regionprotected void append(CommentRange range)
CommentLine
append in class CommentLinerange - comment range to append to this lineprotected java.lang.String getContentPrefix()
CommentLine
getContentPrefix in class CommentLineprotected java.lang.String getEndingPrefix()
CommentLine
getEndingPrefix in class CommentLineprotected final java.lang.String getIndentationReference()
getIndentationReference 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
protected final IRegion trimLine(java.lang.String line,
java.lang.String trimmable)
line.
line - the string to remove the occurrences of
trimmabletrimmable - the string to remove from line
line
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||