Examples of FunctionInfo


Examples of cn.wensiqun.info.InvokeInfo.FunctionInfo

    this.calledFunNames = new String[calledFuns.size()];//calledFun.getName();
    this.calledFunDescs = new String[calledFuns.size()];//Type.getMethodDescriptor(calledFun);
    this.calledFunOwners = new Class<?>[calledFuns.size()];//calledFun.getDeclaringClass();
   
    for(int i=0, len=calledFuns.size(); i<len; i++){
      FunctionInfo calledFun = calledFuns.get(i);
      this.calledFunNames[i] = calledFun.getName();
      this.calledFunDescs[i] = calledFun.getDescription();
      this.calledFunOwners[i] = calledFun.getDeclaringClass();
    }
   
   
    this.callingFunOwner = callingFunOwner;
    this.invokeInfos = invokeInfoMap;
View Full Code Here

Examples of com.facebook.presto.metadata.FunctionInfo

                    throw new UnsupportedOperationException("Unhandled value type: " + value.getClass().getName());
                }
                argumentValues.add(value);
                argumentTypes.add(type);
            }
            FunctionInfo function = metadata.getFunction(node.getName(), argumentTypes, false);
            // do not optimize non-deterministic functions
            if (optimize && !function.isDeterministic()) {
                return new FunctionCall(node.getName(), node.getWindow().orNull(), node.isDistinct(), toExpressions(argumentValues));
            }
            MethodHandle handle = function.getScalarFunction();
            if (handle.type().parameterCount() > 0 && handle.type().parameterType(0) == Session.class) {
                handle = handle.bindTo(session);
            }
            try {
                return handle.invokeWithArguments(argumentValues);
View Full Code Here

Examples of erjang.beam.repr.FunctionInfo

  public ArrayList<FunctionRepr> partitionCodeByFunction() {
    int funCount = (exports==null?0:exports.length)
      + (localFunctions==null?0:localFunctions.length);
    ArrayList<FunctionRepr> functions = new ArrayList<FunctionRepr>(funCount);

    FunctionInfo fi = null;
    ArrayList<Insn> currentFunctionBody = null;
    for (Insn insn : code) {
      FunctionInfo newFI = null;
      if (insn.opcode() == BeamOpcode.label) { // We might switch to a new function
        int labelNr = ((Insn.I)insn).i1;
        newFI = functionAtLabel(labelNr+1);
        if (newFI==null) newFI = functionAtLabel(labelNr);
      } else if (insn.opcode() == BeamOpcode.int_code_end) {
        newFI = new FunctionInfo(null,null,-1,-1); // Easy way to handle last function
      }
      if (newFI != null && newFI != fi) { // Do switch
        if (fi != null) { // Add previous
          FunctionRepr fun = new FunctionRepr(fi, currentFunctionBody);
          functions.add(fun);
View Full Code Here

Examples of erjang.beam.repr.FunctionInfo

    for (int i=0; i<nExports; i++) {
      int fun_atom_nr = in.read4BE();
      int arity    = in.read4BE();
      int label    = in.read4BE();
      EAtom fun = atom(fun_atom_nr);
      exports[i] = new FunctionInfo(mod, fun, arity, label);
      addFunctionAtLabel(exports[i]);
      if (log.isLoggable(Level.FINE) && atoms != null) {
        log.fine("- #"+(i+1)+": "+atom(fun_atom_nr)+"/"+arity+" @ "+label);
      }
    }
View Full Code Here

Examples of erjang.beam.repr.FunctionInfo

    for (int i=0; i<nLocals; i++) {
      int fun_atom_nr = in.read4BE();
      int arity    = in.read4BE();
      int label    = in.read4BE();
      EAtom fun = atom(fun_atom_nr);
      localFunctions[i] = new FunctionInfo(mod, fun, arity, label);
      addFunctionAtLabel(localFunctions[i]);
      if (log.isLoggable(Level.FINE) && atoms != null) {
        log.fine("- #"+(i+1)+": "+atom(fun_atom_nr)+"/"+arity+" @ "+label);
      }
    }
View Full Code Here

Examples of gri.gridp.modules.FunctionInfo

    if (info.getGroup() != null)
      elem.addContent(createElement("group", info.getGroup()));
  }

  public FunctionInfo readFunctionInfo(Element element) throws InvalidModuleException {
    FunctionInfo info = new FunctionInfo();

    List children = element.getChildren();
    Element child;
    for (int i=0; i<children.size(); i++) {
      child = (Element)children.get(i);
      String name = child.getName().toLowerCase();

      if (name.equals("title"))
        info.setTitle(child.getText());
      else if (name.equals("description"))
        info.setDescription(child.getText());
      else if (name.equals("group"))
        info.setGroup(child.getText());
    }

    return info;
  }
View Full Code Here

Examples of io.crate.metadata.FunctionInfo

        this.info = info;
    }

    public static void register(OperatorModule module) {
        for (DataType type : DataTypes.PRIMITIVE_TYPES) {
            FunctionInfo functionInfo = new FunctionInfo(
                    new FunctionIdent(NAME, ImmutableList.<DataType>of(type, new SetType(type))), DataTypes.BOOLEAN);
            module.registerOperatorFunction(new InOperator(functionInfo));
        }
    }
View Full Code Here

Examples of javax.servlet.jsp.tagext.FunctionInfo

         *
         * @return An array of parameter class names
         */
        private String[] getParameters(ELNode.Function func)
                throws JasperException {
            FunctionInfo funcInfo = func.getFunctionInfo();
            String signature = funcInfo.getFunctionSignature();
            ArrayList<String> params = new ArrayList<>();
            // Signature is of the form
            // <return-type> S <method-name S? '('
            // < <arg-type> ( ',' <arg-type> )* )? ')'
            int start = signature.indexOf('(') + 1;
View Full Code Here

Examples of javax.servlet.jsp.tagext.FunctionInfo

                            err.jspError(n, "jsp.error.attribute.invalidPrefix",
                                    prefix);
                        }
                    }
                    TagLibraryInfo taglib = pageInfo.getTaglib(uri);
                    FunctionInfo funcInfo = null;
                    if (taglib != null) {
                        funcInfo = taglib.getFunction(function);
                    }
                    if (funcInfo == null) {
                        err.jspError(n, "jsp.error.noFunction", function);
View Full Code Here

Examples of javax.servlet.jsp.tagext.FunctionInfo

                            err.jspError(n, "jsp.error.attribute.invalidPrefix",
                                    prefix);
                        }
                    }
                    TagLibraryInfo taglib = pageInfo.getTaglib(uri);
                    FunctionInfo funcInfo = null;
                    if (taglib != null) {
                        funcInfo = taglib.getFunction(function);
                    }
                    if (funcInfo == null) {
                        err.jspError(n, "jsp.error.noFunction", function);
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.