|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectPosition
org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentRegion
org.aspectj.org.eclipse.jdt.internal.formatter.comment.MultiCommentRegion
org.aspectj.org.eclipse.jdt.internal.formatter.comment.JavaDocRegion
public class JavaDocRegion
Javadoc region in a source code document.
| Field Summary |
|---|
| Fields inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentRegion |
|---|
COMMENT_RANGE_DELIMITER, fClear, preferences, scribe |
| 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.IHtmlTagDelimiters |
|---|
HTML_CLOSE_PREFIX, HTML_TAG_POSTFIX, HTML_TAG_PREFIX |
| Fields inherited from interface org.aspectj.org.eclipse.jdt.internal.formatter.comment.IBorderAttributes |
|---|
BORDER_LOWER, BORDER_UPPER |
| 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 |
| Constructor Summary | |
|---|---|
JavaDocRegion(IDocument document,
Position position,
CodeFormatterVisitor formatter)
Creates a new Javadoc region. |
|
| Method Summary | |
|---|---|
protected boolean |
canAppend(CommentLine line,
CommentRange previous,
CommentRange next,
int index,
int count)
Can the comment range be appended to the comment line? |
protected boolean |
canFormat(CommentRange previous,
CommentRange next)
Can the whitespace between the two comment ranges be formatted? |
protected CommentLine |
createLine()
Creates a new line for this region. |
protected void |
formatRegion(java.lang.String indentation,
int width)
Formats this comment region. |
protected void |
markHtmlRanges()
Marks the comment ranges confined by HTML ranges. |
protected void |
markHtmlTag(CommentRange range,
char[] token)
Marks the comment range with its HTML tag attributes. |
protected void |
markJavadocTag(CommentRange range,
char[] token)
Marks the comment range with its javadoc tag attributes. |
protected void |
markTagRanges(char[][] tags,
int attribute,
boolean html)
Marks the comment region with the HTML range tag. |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.MultiCommentRegion |
|---|
getDelimiter, getDelimiter, isIndentDescriptions, isIndentRoots, markRegion |
| Methods inherited from class org.aspectj.org.eclipse.jdt.internal.formatter.comment.CommentRegion |
|---|
append, format, getDelimiter, getDocument, getRanges, getSize, getText, hasBorder, isAlphaNumeric, isClearLines, isNonAlphaNumeric, isSingleLine, logEdit, setBorder, stringToIndent, stringToLength, tokenizeRegion, wrapRegion |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JavaDocRegion(IDocument document,
Position position,
CodeFormatterVisitor formatter)
document - the document which contains the comment regionposition - the position of this comment region in the documentformatter - the given formatter| Method Detail |
|---|
protected boolean canFormat(CommentRange previous,
CommentRange next)
CommentRegion
canFormat in class CommentRegionprevious - previous comment range which was already formatted,
can be nullnext - next comment range to be formatted
true iff the next comment range can be
formatted, false otherwise.
protected final void formatRegion(java.lang.String indentation,
int width)
CommentRegion
formatRegion in class CommentRegionindentation - the indentation of this comment regionwidth - the maximal width of text in this comment region
measured in average character widthsprotected final void markHtmlRanges()
MultiCommentRegion
markHtmlRanges in class MultiCommentRegion
protected final void markHtmlTag(CommentRange range,
char[] token)
MultiCommentRegion
markHtmlTag in class MultiCommentRegionrange - the comment range to marktoken - token associated with the comment range
protected final void markJavadocTag(CommentRange range,
char[] token)
MultiCommentRegion
markJavadocTag in class MultiCommentRegionrange - the comment range to marktoken - token associated with the comment range
protected final void markTagRanges(char[][] tags,
int attribute,
boolean html)
tags - the HTML tag which confines the HTML rangeattribute - the attribute to set if the comment range is in the
HTML rangehtml - true iff the HTML tags in this HTML range
should be marked too, false otherwise
protected boolean canAppend(CommentLine line,
CommentRange previous,
CommentRange next,
int index,
int count)
CommentRegion
canAppend in class MultiCommentRegionline - comment line where to append the comment rangeprevious - comment range which is the predecessor of the current
comment rangenext - comment range to test whether it can be appended to the
comment lineindex - amount of space in the comment line used by already
inserted comment rangescount - the maximal width of text in this comment region
measured in average character widths
true iff the comment range can be added to the
line, false otherwiseprotected CommentLine createLine()
CommentRegion
createLine in class MultiCommentRegion
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||