public static interface

UserMentionScanner.UserMention

com.atlassian.bitbucket.user.UserMentionScanner.UserMention

Class Overview

Represents the location and content of a user mention in the text.

Summary

Public Methods
int getEnd()
@Nonnull String getFullMention()
@Nonnull String getFullUnescapedMention()
int getStart()
@Nonnull String getUsername()

Public Methods

public int getEnd ()

Returns
  • the end position of the user mention in the text

@Nonnull public String getFullMention ()

Returns
  • the full mention string, including any meta or escape characters

@Nonnull public String getFullUnescapedMention ()

Returns
  • the full mention string, including any meta characters, but not including escape characters

public int getStart ()

Returns
  • the start position of the user mention in the text

@Nonnull public String getUsername ()

Returns
  • the user name of the mention string, not including any escape characters