
org.tools4j.groovytables.ExecutableCallPrecursor.groovy Maven / Gradle / Ivy
package org.tools4j.groovytables
import groovy.transform.ToString
/**
* User: ben
* Date: 14/03/2016
* Time: 5:45 PM
*/
@ToString
class ExecutableCallPrecursor implements CallPrecursor>{
final Suitability suitability;
final Object[] rawArgs;
final Object[] coercedArgs;
final ExecutableConstructionCall constructionCall;
final static NOT_SUITABLE = new ExecutableCallPrecursor(Suitability.NOT_SUITABLE, null, null, null);
ExecutableCallPrecursor(final Suitability suitability, final Object[] rawArgs, final Object[] coercedArgs, final ExecutableConstructionCall constructionCall) {
this.suitability = suitability
this.rawArgs = rawArgs
this.coercedArgs = coercedArgs
this.constructionCall = constructionCall
}
TypeCoercionResult executeMethod() {
return new TypeCoercionResult(constructionCall.construct(coercedArgs), suitability, constructionCall);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy