public class JavaCommenter extends java.lang.Object implements CodeDocumentationAwareCommenterEx
| Constructor and Description |
|---|
JavaCommenter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBlockCommentPrefix()
Returns the string which marks the beginning of a block comment in the language,
or null if the language does not support block comments.
|
java.lang.String |
getBlockCommentSuffix()
Returns the string which marks the end of a block comment in the language,
or null if the language does not support block comments.
|
IElementType |
getBlockCommentTokenType()
Returns the type of the block comment in the language,
or null if the language does not support block comments.
|
java.lang.String |
getCommentedBlockCommentPrefix()
Returns the string which marks the commented beginning of a block comment in the language,
or null if the language does not support block comments.
|
java.lang.String |
getCommentedBlockCommentSuffix()
Returns the string which marks the commented end of a block comment in the language,
or null if the language does not support block comments.
|
java.lang.String |
getDocumentationCommentLinePrefix()
Returns the string which prefixes documentation line comment in the language, or null if the language
does not support documentation comments.
|
java.lang.String |
getDocumentationCommentPrefix()
Returns the string which starts documentation comment in the language, or null if the language
does not support documentation comments.
|
java.lang.String |
getDocumentationCommentSuffix()
Returns the string which ends documentation comment in the language, or null if the language
does not support documentation comments.
|
IElementType |
getDocumentationCommentTokenType()
Returns the type of the documentation comment token in the language,
or null if the language does not support documentation comments.
|
java.lang.String |
getLineCommentPrefix()
Returns the string that prefixes a line comment in the language, or null if the language
does not support line comments.
|
IElementType |
getLineCommentTokenType()
Returns the type of the line comment in the language,
or null if the language does not support line comments.
|
boolean |
isDocumentationComment(PsiComment element) |
boolean |
isDocumentationCommentText(PsiElement element)
Documentation comments may consist of various nested elements: e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLineCommentPrefixespublic java.lang.String getLineCommentPrefix()
CommenterCommenter.getLineCommentPrefixes()
to get all supported line comment prefixes.getLineCommentPrefix in interface Commenterpublic java.lang.String getBlockCommentPrefix()
CommentergetBlockCommentPrefix in interface Commenterpublic java.lang.String getBlockCommentSuffix()
CommentergetBlockCommentSuffix in interface Commenterpublic java.lang.String getCommentedBlockCommentPrefix()
CommentergetCommentedBlockCommentPrefix in interface Commenterpublic java.lang.String getCommentedBlockCommentSuffix()
CommentergetCommentedBlockCommentSuffix in interface Commenterpublic IElementType getLineCommentTokenType()
CodeDocumentationAwareCommentergetLineCommentTokenType in interface CodeDocumentationAwareCommenterpublic IElementType getBlockCommentTokenType()
CodeDocumentationAwareCommentergetBlockCommentTokenType in interface CodeDocumentationAwareCommenterpublic IElementType getDocumentationCommentTokenType()
CodeDocumentationAwareCommentergetDocumentationCommentTokenType in interface CodeDocumentationAwareCommenterpublic java.lang.String getDocumentationCommentPrefix()
CodeDocumentationAwareCommentergetDocumentationCommentPrefix in interface CodeDocumentationAwareCommenterpublic java.lang.String getDocumentationCommentLinePrefix()
CodeDocumentationAwareCommentergetDocumentationCommentLinePrefix in interface CodeDocumentationAwareCommenterpublic java.lang.String getDocumentationCommentSuffix()
CodeDocumentationAwareCommentergetDocumentationCommentSuffix in interface CodeDocumentationAwareCommenterpublic boolean isDocumentationComment(PsiComment element)
isDocumentationComment in interface CodeDocumentationAwareCommenterpublic boolean isDocumentationCommentText(PsiElement element)
CodeDocumentationAwareCommenterExisDocumentationCommentText in interface CodeDocumentationAwareCommenterExelement - element to check