if (segment instanceof JavaMethod) {
JavaMethod javaMethod = (JavaMethod)segment;
if (javaMethod.getNativeCode() == null) {
throw new RuntimeException("Method '" + javaMethod.getName() + "' has no body");
}
CMethod cMethod = findCMethod(javaMethod, cMethods);
if (cMethod == null)
throw new RuntimeException("Couldn't find C method for Java method '" + javaMethod.getClassName() + "#"
+ javaMethod.getName() + "'");
emitJavaMethod(buffer, javaMethod, cMethod);
}