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 Summary
ConstructorsConstructorDescriptionAceCompletionSnippetSegmentLiteral(String literalText) The literal text that makes up part of the snippet segment -
Method Summary
Modifier and TypeMethodDescriptiongetPreparedText(int tabstopNumber) 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)
-
Constructor Details
-
AceCompletionSnippetSegmentLiteral
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
Description copied from interface:AceCompletionSnippetSegmentGets 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:
getPreparedTextin interfaceAceCompletionSnippetSegment- Parameters:
tabstopNumber- the tab stop number- Returns:
- the prepared textual representation of this snippet segment
-