クラス Utils
java.lang.ObjectSE
org.springframework.shell.Utils
いくつかのテキストユーティリティ。
コンストラクターの概要
コンストラクター方法の概要
修飾子と型メソッド説明static org.springframework.core.MethodParametercreateMethodParameter(ExecutableSE executable, int i) 指定された実行可能ファイルとインデックスに対して適切に初期化された MethodParameter を返します。static org.springframework.core.MethodParametercreateMethodParameter(ParameterSE parameter) JDKParameterSE から SpringMethodParameterに変換します。static StreamSE<org.springframework.core.MethodParameter>createMethodParameters(ExecutableSE executable) 指定されたメソッド / コンストラクターの各パラメーターに対して MethodParameters を返します。static jakarta.validation.Validatorデフォルトの共有バリデータを取得します。static jakarta.validation.ValidatorFactoryデフォルトの共有検証ファクトリを取得します。static MapSE<StringSE,CommandRegistration> removeHiddenCommands(MapSE<StringSE, CommandRegistration> registrations) コマンド登録のマップを取得し、そこから隠しコマンドを削除します。sanitizeInput(ListSE<StringSE> words) JLine パーサーに適用されたカスタマイズを指定して、バッファー入力をサニタイズします。( たとえば。行継続のサポートなど )split(T[] array, PredicateSE<T> predicate) 配列を述語でリストのリストに分割するstatic StringSEunCamelify(CharSequenceSE original) CamelCaseText を gnu-style-lowercase に変換します。
コンストラクターの詳細
Utils
public Utils()
メソッドの詳細
unCamelify
CamelCaseText を gnu-style-lowercase に変換します。createMethodParameter
JDKParameterSE から SpringMethodParameterに変換します。createMethodParameter
public static org.springframework.core.MethodParameter createMethodParameter(ExecutableSE executable, int i) 指定された実行可能ファイルとインデックスに対して適切に初期化された MethodParameter を返します。createMethodParameters
public static StreamSE<org.springframework.core.MethodParameter> createMethodParameters(ExecutableSE executable) 指定されたメソッド / コンストラクターの各パラメーターに対して MethodParameters を返します。sanitizeInput
JLine パーサーに適用されたカスタマイズを指定して、バッファー入力をサニタイズします。( たとえば。行継続のサポートなど )defaultValidatorFactory
public static jakarta.validation.ValidatorFactory defaultValidatorFactory()デフォルトの共有検証ファクトリを取得します。- 戻り値:
- デフォルトの検証ファクトリ
defaultValidator
public static jakarta.validation.Validator defaultValidator()デフォルトの共有バリデータを取得します。- 戻り値:
- デフォルトバリデーター
split
配列を述語でリストのリストに分割する- パラメーター:
array- 配列predicate- 述語- 戻り値:
- リストのリスト
removeHiddenCommands
public static MapSE<StringSE,CommandRegistration> removeHiddenCommands(MapSE<StringSE, CommandRegistration> registrations) コマンド登録のマップを取得し、そこから隠しコマンドを削除します。- パラメーター:
registrations- コマンドの登録- 戻り値:
- 隠しコマンドを削除した同じマップ