|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jdt.internal.formatter.FormatJavadocNode
org.eclipse.jdt.internal.formatter.FormatJavadocText
public class FormatJavadocText
Represents text inside a javadoc comment block.
Text may be simple as Line inside a javadoc comment block
or may be a html tag. Note that to minimize memory footprint, only text
positions are stored.
Simple text may have one or several lines. When it has several lines, the
positions of the line breaks are also stored in the separators
array.
When text has html tags, then they are stored in htmlNodes
array
in a recursive way.
Field Summary |
---|
Constructor Summary | |
---|---|
FormatJavadocText(int start,
int end,
int line,
int htmlIndex,
int htmlDepth)
|
Method Summary | |
---|---|
boolean |
isClosingHtmlTag()
Returns whether the text is a closing html tag or not. |
boolean |
isHtmlTag()
Returns whether the text is a html tag or not. |
boolean |
isImmutableHtmlTag()
Returns whether the node is an immutable html tag or not. |
boolean |
isText()
Returns whether the node is a text (see FormatJavadocText or not. |
boolean |
isTextAfterHtmlSeparatorTag(int separatorIndex)
Returns whether the text at the given separator index position is after a separator tag or not. |
void |
toStringDebug(java.lang.StringBuffer buffer,
char[] source)
|
Methods inherited from class org.eclipse.jdt.internal.formatter.FormatJavadocNode |
---|
getLength, toString, toStringDebug |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FormatJavadocText(int start, int end, int line, int htmlIndex, int htmlDepth)
Method Detail |
---|
public boolean isClosingHtmlTag()
true
if the node is an html tag and has '/' before its
name (e.g. ), false
otherwise.public boolean isHtmlTag()
true
if the node is a html tag, false
otherwise.public boolean isImmutableHtmlTag()
The text in an immutable tags is never formatted.
true
if the node is an immutable tag,
false
otherwise.public boolean isTextAfterHtmlSeparatorTag(int separatorIndex)
true
if the text is after a separator tag,
false
otherwise or if the given index is out the range of
the text separators.public boolean isText()
FormatJavadocNode
FormatJavadocText
or not.
In case not, that means that the node is an block (see
FormatJavadocBlock
).
isText
in class FormatJavadocNode
true
if the node is a text false
otherwise.public void toStringDebug(java.lang.StringBuffer buffer, char[] source)
toStringDebug
in class FormatJavadocNode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |