Examples of FunctionSignature


Examples of blackberry.core.FunctionSignature

   
      /**
       * @see net.rim.device.api.web.jse.base.ScriptableFunctionBase
       */
      protected FunctionSignature[] getFunctionSignatures() {
          FunctionSignature fs = new FunctionSignature(2);
          fs.addParam(String.class, true);
          fs.addParam(ScriptableFunction.class, false);
          return new FunctionSignature[] { fs };
      }
View Full Code Here

Examples of com.opengamma.engine.function.dsl.FunctionSignature

  }

  @Override
  public Set<ValueSpecification> getResults(FunctionCompilationContext context, ComputationTarget target) {

    FunctionSignature signature = getFunctionSignature();
    Pair<Map<String, StreamI<FunctionInput>>, Map<String, StreamI<FunctionOutput>>> ioputsByName = ioputsByName(signature);

    Map<String, StreamI<FunctionInput>> inputsByName = ioputsByName.getFirst();
    Map<String, StreamI<FunctionOutput>> outputsByName = ioputsByName.getSecond();
View Full Code Here

Examples of org.exist.xquery.FunctionSignature

        //get the entry-filter function and check its types
        if(!(args[1].itemAt(0) instanceof FunctionReference))
            throw new XPathException("No entry-filter function provided.");
        entryFilterFunction = (FunctionReference)args[1].itemAt(0);
        FunctionSignature entryFilterFunctionSig = entryFilterFunction.getSignature();
        if(entryFilterFunctionSig.getArgumentCount() < 3)
            throw new XPathException("entry-filter function must take at least 3 arguments.");

        filterParam = args[2];
       
        //get the entry-data function and check its types
        if(!(args[3].itemAt(0) instanceof FunctionReference))
            throw new XPathException("No entry-data function provided.");
        entryDataFunction = (FunctionReference)args[3].itemAt(0);
        FunctionSignature entryDataFunctionSig = entryDataFunction.getSignature();
        if(entryDataFunctionSig.getArgumentCount() < 3)
            throw new XPathException("entry-data function must take at least 3 arguments");

        storeParam = args[4];
       
        BinaryValue compressedData = ((BinaryValue)args[0].itemAt(0));
View Full Code Here

Examples of org.exquery.xquery.FunctionSignature

     2) the name of the Resource Function
     *  3) the arity of the Resource Function
     */
    @Override
    public int hashCode() {
        final FunctionSignature fnSignature = getResourceFunction().getFunctionSignature();
        return getResourceFunction().getXQueryLocation().hashCode()
        ^ fnSignature.getName().hashCode()
        ^ fnSignature.getArgumentCount() * 32;
    }
View Full Code Here

Examples of org.exquery.xquery3.FunctionSignature

                for(final Entry<URI, List<FunctionSignature>> xqueryServiceFunctions : xqueryServices.entrySet()) {
                    writer.print(xqueryServiceFunctions.getKey() + FIELD_SEP);
                   
                    final List<FunctionSignature> fnSigs = xqueryServiceFunctions.getValue();
                    for(int i = 0; i < fnSigs.size(); i++) {
                        final FunctionSignature fnSig = fnSigs.get(i);
                        writer.print(qnameToClarkNotation(fnSig.getName()) + ARITY_SEP + fnSig.getArgumentCount());
                    }
                    writer.println();
                }
            } catch(final IOException ioe) {
                log.error(ioe.getMessage(), ioe);
View Full Code Here

Examples of xbird.xquery.func.FunctionSignature

        super(SYMBOL, DoubleType.DOUBLE);
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        s[0] = new FunctionSignature(getName());
        s[1] = new FunctionSignature(getName(), new Type[] { TypeRegistry.safeGet("xs:anyAtomicType?") });
        return s;
    }
View Full Code Here

Examples of xbird.xquery.func.FunctionSignature

        super(SYMBOL, NodeType.ANYNODE);
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        s[0] = new FunctionSignature(getName());
        s[1] = new FunctionSignature(getName(), new Type[] { TypeRegistry.safeGet("node()?") });
        return s;
    }
View Full Code Here

Examples of xbird.xquery.func.FunctionSignature

    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        Type strq = TypeRegistry.safeGet("xs:string?");
        s[0] = new FunctionSignature(getName(), new Type[] { strq });
        s[1] = new FunctionSignature(getName(), new Type[] { strq, NodeType.ANYNODE });
        return s;
    }
View Full Code Here

Examples of xbird.xquery.func.FunctionSignature

        super(SYMBOL, StringType.STRING);
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        s[0] = new FunctionSignature(getName());
        s[1] = new FunctionSignature(getName(), new Type[] { TypeRegistry.safeGet("node()?") });
        return s;
    }
View Full Code Here

Examples of xbird.xquery.func.FunctionSignature

        super(SYMBOL, AnyURIType.ANYURI);
    }

    protected FunctionSignature[] signatures() {
        final FunctionSignature[] s = new FunctionSignature[2];
        s[0] = new FunctionSignature(getName());
        s[1] = new FunctionSignature(getName(), new Type[] { TypeRegistry.safeGet("node()?") });
        return s;
    }
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.