Class AceCompletionSnippetSegmentLiteral

java.lang.Object
cn.mapway.document.ui.client.component.ace.AceCompletionSnippetSegmentLiteral
All Implemented Interfaces:
AceCompletionSnippetSegment

public class AceCompletionSnippetSegmentLiteral extends Object implements AceCompletionSnippetSegment
A segment of a completion snippet
  • Constructor Details

    • AceCompletionSnippetSegmentLiteral

      public AceCompletionSnippetSegmentLiteral(String literalText)
      The literal text that makes up part of the snippet segment
      Parameters:
      literalText - The literal text that makes up part of the snippet. This does not need to be escaped, escaping will be handled automatically.
  • Method Details

    • getPreparedText

      public String getPreparedText(int tabstopNumber)
      Description copied from interface: AceCompletionSnippetSegment
      Gets the escaped and prepared textual representation of this snippet segment (backslash and dollar are escaped in general and the dollar is used for certain special tokens)
      Specified by:
      getPreparedText in interface AceCompletionSnippetSegment
      Parameters:
      tabstopNumber - the tab stop number
      Returns:
      the prepared textual representation of this snippet segment