public interface SpelNode| 修飾子と型 | メソッドと説明 |
|---|---|
SpelNode | getChild(int index)Antlr Tree ノードではなく SpelNode を返すヘルパーメソッド。 |
int | getChildCount() このノードの子の数を返します。 |
int | getEndPosition() 式文字列内のこの AST ノードの終了位置を返します。 |
ClassSE<?> | getObjectClass(ObjectSE obj) 渡されたオブジェクトがすでにクラスオブジェクトでない限り、渡されたオブジェクトのクラスを判別します。 |
int | getStartPosition() この AST ノードの開始位置を式文字列で返します。 |
TypedValue | getTypedValue(ExpressionState expressionState) 指定された式の状態のコンテキストで式ノードを評価し、型付きの値を返します。 |
ObjectSE | getValue(ExpressionState expressionState) 指定された式の状態のコンテキストで式ノードを評価し、値を返します。 |
boolean | isWritable(ExpressionState expressionState) この式ノードが setValue() 呼び出しをサポートするかどうかを決定します。 |
void | setValue(ExpressionState expressionState, ObjectSE newValue) 式をノードに評価してから、そのノードに新しい値を設定します。 |
StringSE | toStringAST() この AST ノードの文字列形式を返します。 |
@Nullable ObjectSE getValue(ExpressionState expressionState) throws EvaluationException
expressionState - 現在の式の状態 (コンテキストを含みます)EvaluationExceptionTypedValue getTypedValue(ExpressionState expressionState) throws EvaluationException
expressionState - 現在の式の状態 (コンテキストを含みます)EvaluationExceptionboolean isWritable(ExpressionState expressionState) throws EvaluationException
expressionState - 現在の式の状態 (コンテキストを含みます)EvaluationException - ノードが書き込みをサポートしているかどうかを判断しようとして問題が発生した場合 void setValue(ExpressionState expressionState, @Nullable ObjectSE newValue) throws EvaluationException
expressionState - 現在の式の状態 (コンテキストを含みます)newValue - 新しい価値 EvaluationException - 式の評価または新しい値の設定で問題が発生した場合 StringSE toStringAST()
int getChildCount()
SpelNode getChild(int index)
@Nullable ClassSE<?> getObjectClass(@Nullable ObjectSE obj)
obj - 呼び出し元がクラスを必要とするオブジェクト null の場合は null int getStartPosition()
int getEndPosition()