class StringResult extends SearchResult {
	private final String text;

	/**
	 * Constructs a class result.
	 *
	 * @param text
	 * 		Matched text.
	 */
	public StringResult(String text) {
		this.text = text;
	}

	/**
	 * @return Matched text.
	 */
	public String getText() {
		return text;
	}

	@Override
	public int compareTo(SearchResult other) {<FILL_FUNCTION_BODY>}

	@Override
	public String toString() {
		return text.replace("\n", "\\n").replace("\t", "\\t");
	}
}

		int ret = super.compareTo(other);
		if(ret == 0) {
			if(other instanceof StringResult) {
				StringResult otherResult = (StringResult) other;
				return text.compareTo(otherResult.text);
			}
		}
		return ret;
	
<methods>public non-sealed void <init>() ,public int compareTo(me.coley.recaf.search.SearchResult) ,public Context<?> getContext() ,public boolean isContextSimilar(me.coley.recaf.search.SearchResult) ,public void setContext(Context<?>) ,public java.lang.String toString() <variables>private Context<?> context