Package org.renjin.methods.PrimitiveMethodTable

Examples of org.renjin.methods.PrimitiveMethodTable.prim_methods_t



  public static void do_set_prim_method(@Current Context context, PrimitiveFunction op,
      String code_string, SEXP fundef, SEXP mlist) {

    prim_methods_t code = parseCode(code_string);

    PrimitiveMethodTable table = context.getSession().getSingleton(PrimitiveMethodTable.class);
    PrimitiveMethodTable.Entry entry = table.get(op);

    entry.setMethods(code);
View Full Code Here


    }
  }


  private static prim_methods_t parseCode(String code_string) {
    prim_methods_t code = prim_methods_t.NO_METHODS;
    if(code_string.equalsIgnoreCase("clear")) {
      code = prim_methods_t.NO_METHODS;
    } else if(code_string.equalsIgnoreCase("reset")) {
      code = prim_methods_t.NEEDS_RESET;
    } else if(code_string.equalsIgnoreCase("set")) {
View Full Code Here

TOP

Related Classes of org.renjin.methods.PrimitiveMethodTable.prim_methods_t

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.