クラス PathSearch
java.lang.ObjectSE
org.springframework.shell.jline.tui.component.support.AbstractComponent<C>
org.springframework.shell.jline.tui.component.support.AbstractTextComponent<PathSE,PathSearch.PathSearchContext>
org.springframework.shell.jline.tui.component.PathSearch
- 実装済みのインターフェース一覧:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware
基本パスとオプションの検索語に基づいて
PathSE を解決するコンポーネント。ユーザーはベースパスを入力し、スペースと検索語で区切ることが期待されます。https://github.com/junegunn/fzf およびその他のソースからのアルゴリズムに基づいています。- 作成者:
- Janne Valkealahti, Piotr Olaszewski, Andrey Litvitski
ネストされたクラスの概要
ネストされたクラス修飾子と型クラス説明static classパススキャンの結果。static classパス検索の設定を定義するクラス。static interfacePathSearchのコンテキスト。static classPathSE およびSearchMatchResultを維持するホルダークラス。クラス org.springframework.shell.jline.tui.component.support.AbstractTextComponent から継承されたネストクラス / インターフェース
AbstractTextComponent.BaseTextComponentContext<T,C extends AbstractTextComponent.TextComponentContext<T, C>>, AbstractTextComponent.TextComponentContext<T, C extends AbstractTextComponent.TextComponentContext<T, C>> フィールドのサマリー
クラス org.springframework.shell.jline.tui.component.support.AbstractComponent から継承されたフィールド
OPERATION_BACKSPACE, OPERATION_CHAR, OPERATION_DOWN, OPERATION_EXIT, OPERATION_SELECT, OPERATION_UNICODE, OPERATION_UPコンストラクター概要
コンストラクターコンストラクター説明PathSearch(org.jline.terminal.Terminal terminal) PathSearch(org.jline.terminal.Terminal terminal, @Nullable StringSE name) PathSearch(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable PathSearch.PathSearchConfig config) PathSearch(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable PathSearch.PathSearchConfig config, @Nullable FunctionSE<PathSearch.PathSearchContext, ListSE<org.jline.utils.AttributedString>> renderer) 方法の概要
修飾子と型メソッド説明protected voidbindKeyMap(org.jline.keymap.KeyMap<StringSE> keyMap) キーマップをバインドします。getThisContext(@Nullable ComponentContext<?> context) 共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。protected booleanread(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, PathSearch.PathSearchContext context) 入力を読み取ります。protected PathSEresolvePath(StringSE path) 与えられた生のpathからPathSE を解決します。voidsetPathProvider(FunctionSE<StringSE, PathSE> pathProvider) パスプロバイダーを設定します。クラス org.springframework.shell.jline.tui.component.support.AbstractTextComponent から継承されたメソッド
getName, runInternalクラス org.springframework.shell.jline.tui.component.support.AbstractComponent から継承されたメソッド
addPostRunHandler, addPreRunHandler, getTemplateExecutor, getTerminal, hasTty, loop, render, renderTemplateResource, run, runPostRunHandlers, runPreRunHandlers, setPrintResults, setRenderer, setResourceLoader, setTemplateExecutor, setTemplateLocation
コンストラクターの詳細
PathSearch
public PathSearch(org.jline.terminal.Terminal terminal) PathSearch
PathSearch
public PathSearch(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable PathSearch.PathSearchConfig config) PathSearch
public PathSearch(org.jline.terminal.Terminal terminal, @Nullable StringSE name, @Nullable PathSearch.PathSearchConfig config, @Nullable FunctionSE<PathSearch.PathSearchContext, ListSE<org.jline.utils.AttributedString>> renderer)
メソッドの詳細
bindKeyMap
クラスからコピーされた説明:AbstractComponentキーマップをバインドします。- オーバーライド:
- クラス
AbstractTextComponent<PathSE,のPathSearch.PathSearchContext> bindKeyMap
getThisContext
クラスからコピーされた説明:AbstractComponent共通のこのトリックを使用して、実際のコンポーネントコンテキストを取得します。- 次で指定:
- クラス
AbstractComponent<PathSearch.PathSearchContext>のgetThisContext - パラメーター:
context- コンテキスト- 戻り値:
- コンポーネントコンテキスト
read
protected boolean read(org.jline.keymap.BindingReader bindingReader, org.jline.keymap.KeyMap<StringSE> keyMap, PathSearch.PathSearchContext context) クラスからコピーされた説明:AbstractComponent入力を読み取ります。- 次で指定:
- クラス
AbstractComponent<PathSearch.PathSearchContext>のread - パラメーター:
bindingReader- バインディングリーダーkeyMap- キーマップcontext- コンテキスト- 戻り値:
- 読み取りが完了した場合は true、停止する場合は false
setPathProvider
パスプロバイダーを設定します。- パラメーター:
pathProvider- パスプロバイダー
resolvePath
与えられた生のpathからPathSE を解決します。- パラメーター:
path- 生のパス- 戻り値:
- 解決されたパス