* possible.
* @param name Method name
* @return
*/
Object getNativeMethod(String name) {
NativeJavaMethod nativeMethod = null;
Method method = null;
List<String> unary = Arrays.asList(
"isEmpty", "isRectangle", "isSimple", "isValid");
if (unary.contains(name)) {
try {
method = geometry.getClass().getMethod(name);
} catch (Exception e) {
throw new RuntimeException("Unable to find method: " + name, e);
}
return new NativeJavaMethod(method, name);
}
List<String> binary = Arrays.asList(
"contains", "coveredBy", "covers", "crosses", "disjoint",
"equals", "equalsExact", "overlaps", "intersects", "touches",