Add new methods to FunctionInspector

This commit is contained in:
Dave Syer
2017-07-12 13:35:03 +01:00
parent 7e966c73ca
commit d7d49858f6
3 changed files with 107 additions and 21 deletions

View File

@@ -113,6 +113,31 @@ public class FunctionExtractingFunctionCatalog
return (Boolean) inspect(name, "isMessage");
}
@Override
public Class<?> getInputType(Object function) {
return (Class<?>) inspect(function, "getInputType");
}
@Override
public Class<?> getOutputType(Object function) {
return (Class<?>) inspect(function, "getOutputType");
}
@Override
public Class<?> getInputWrapper(Object function) {
return (Class<?>) inspect(function, "getInputWrapper");
}
@Override
public Class<?> getOutputWrapper(Object function) {
return (Class<?>) inspect(function, "getOutputWrapper");
}
@Override
public Object convert(Object function, String value) {
return inspect(function, "convert");
}
@Override
public Class<?> getInputType(String name) {
return (Class<?>) inspect(name, "getInputType");