public abstract class ExpressionUtils extends ObjectSE
コンストラクターと説明 |
---|
ExpressionUtils() |
修飾子と型 | メソッドと説明 |
---|---|
static <T> T | convertTypedValue(EvaluationContext context, TypedValue typedValue, ClassSE<T> targetType) 指定されたコンテキストで使用可能な型コンバーターがあるかどうかを判別し、それを使用して、指定された値を指定された型に変換しようとします。 |
static boolean | toBoolean(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値をブール値に変換しようとします。 |
static byte | toByte(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値をバイトに変換してみてください。 |
static char | toChar(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付きの値を char に変換しようとします。 |
static double | toDouble(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を double に変換してみてください。 |
static float | toFloat(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を浮動小数点数に変換してみてください。 |
static int | toInt(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を int に変換しようとします。 |
static long | toLong(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を long に変換しようとします。 |
static short | toShort(TypeConverter typeConverter, TypedValue typedValue) 提供された型コンバーターを使用して、型付き値を short に変換してみてください。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
@Nullable public static <T> T convertTypedValue(@Nullable EvaluationContext context, TypedValue typedValue, @Nullable ClassSE<T> targetType)
context
- 型コンバーターを定義する可能性のある評価コンテキスト typedValue
- 変換する値とそれを説明する型記述子 targetType
- 変換を試みる型 EvaluationException
- 変換中に問題が発生した場合、または指定された型への値の変換はサポートされていません public static int toInt(TypeConverter typeConverter, TypedValue typedValue)
public static boolean toBoolean(TypeConverter typeConverter, TypedValue typedValue)
public static double toDouble(TypeConverter typeConverter, TypedValue typedValue)
public static long toLong(TypeConverter typeConverter, TypedValue typedValue)
public static char toChar(TypeConverter typeConverter, TypedValue typedValue)
public static short toShort(TypeConverter typeConverter, TypedValue typedValue)
public static float toFloat(TypeConverter typeConverter, TypedValue typedValue)
public static byte toByte(TypeConverter typeConverter, TypedValue typedValue)