Package com.badlogic.gdx.jnigen.parsing.JavaMethodParser

Examples of com.badlogic.gdx.jnigen.parsing.JavaMethodParser.JavaMethod


      if (segment instanceof JniSection) {
        emitJniSection(buffer, (JniSection)segment);
      }

      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);
      }
    }
    cppFile.writeString(buffer.toString(), false, "UTF-8");
  }
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.jnigen.parsing.JavaMethodParser.JavaMethod

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.