Interface PsiComment

All Superinterfaces:
PsiElement, PsiExternalReferenceHost, UrlReferenceHost

public interface PsiComment extends PsiElement, UrlReferenceHost
Represents a comment in a code.
  • Method Details

    • getTokenType

      @NotNull @NotNull IElementType getTokenType()
      Returns the token type of the comment (like JavaTokenType.END_OF_LINE_COMMENT or JavaTokenType.C_STYLE_COMMENT).