public class ReflectiveMethodExecutor extends ObjectSE implements MethodExecutor
MethodExecutor
。コンストラクターと説明 |
---|
ReflectiveMethodExecutor(MethodSE method) 指定されたメソッドの新しいエグゼキューターを作成します。 |
ReflectiveMethodExecutor(MethodSE method, ClassSE<?> targetClass) 指定されたメソッドの新しいエグゼキューターを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
boolean | didArgumentConversionOccur() |
TypedValue | execute(EvaluationContext context, ObjectSE target, ObjectSE... arguments) 指定された引数を使用し、指定された式の状態を使用してコマンドを実行します。 |
MethodSE | getMethod() このエグゼキューターが構成された元のメソッドを返します。 |
ClassSE<?> | getPublicDeclaringClass() このメソッドを宣言するクラス階層を宣言するメソッドで最初のパブリッククラスを見つけます。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ReflectiveMethodExecutor(MethodSE method)
method
- 呼び出すメソッド public final MethodSE getMethod()
@Nullable public ClassSE<?> getPublicDeclaringClass()
public boolean didArgumentConversionOccur()
public TypedValue execute(EvaluationContext context, ObjectSE target, ObjectSE... arguments) throws AccessException
MethodExecutor
MethodExecutor
の execute
context
- コマンドが実行されている評価コンテキスト target
- 呼び出しのターゲットオブジェクト - 静的メソッドの場合は nullarguments
- エグゼキューターへの引数は、コマンドが実行する必要があるものは何でも(数と型に関して)一致する必要があります AccessException
- コマンドの実行に問題があるか、MethodExecutor が無効になった場合