Examples of JimpleInterfaceBuilder


Examples of org.renjin.gcc.jimple.JimpleInterfaceBuilder

  public ImFunctionType methodRef(GimpleFunctionType type) {
    return resolveFunctionType(type);
  }

  private void addInterface(ImFunctionType signature) {
    JimpleInterfaceBuilder iface = context.getJimpleOutput().newInterface();
    iface.setPackageName(PACKAGE_NAME);
    iface.setClassName(signature.interfaceName());
    iface.extendsInterface("org.renjin.gcc.runtime.FunPtr");

    JimpleMethodBuilder applyMethod = iface.newMethod();
    applyMethod.setName("apply");
    applyMethod.setReturnType(signature.getReturnType());

    int paramIndex = 0;
    for (JimpleType paramType : signature.getParameterTypes()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.