Examples of IFunction


Examples of net.quenchnetworks.sassybarista.sass.eval.IFunction

            SassParser parser = new SassParser(new StringReader(withImports));
            SassSheet sheet = parser.parse(file.getParentFile());


            SassSheetEvaluator evaluator = new SassSheetEvaluator(new JavaStringInterpolator());
            evaluator.addFunction("formatProperty", new IFunction() {
                public IPropertyValue evaluate(List<IPropertyValue> params)
                        throws EvaluationException {
                    if ("test".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
                        return new NumberPropertyValue("3");
                    } else if ("title".equals(((DefaultPropertyValue) params.get(0)).getValue())) {
View Full Code Here

Examples of org.apache.juddi.function.IFunction

  public RegistryObject execute(RegistryObject request)
    throws RegistryException
  {
    String className = request.getClass().getName();

    IFunction function = (IFunction)maker.lookup(className);
    if (function == null)
      throw new UnsupportedException(className);

    RegistryObject response = function.execute(request);

    return response;
  }
View Full Code Here

Examples of org.apache.juddi.function.IFunction

  public RegistryObject execute(RegistryObject request)
    throws RegistryException
  {
    String className = request.getClass().getName();

    IFunction function = (IFunction)maker.lookup(className);
    if (function == null)
      throw new UnsupportedException(className);

    RegistryObject response = function.execute(request);

    return response;
  }
View Full Code Here

Examples of org.apache.juddi.function.IFunction

  public RegistryObject execute(RegistryObject request)
    throws RegistryException
  {
    String className = request.getClass().getName();

    IFunction function = (IFunction)maker.lookup(className);
    if (function == null)
      throw new UnsupportedException(className);

    RegistryObject response = function.execute(request);

    return response;
  }
View Full Code Here

Examples of org.apache.juddi.function.IFunction

  public RegistryObject execute(RegistryObject request)
    throws RegistryException
  {
    String className = request.getClass().getName();

    IFunction function = (IFunction)maker.lookup(className);
    if (function == null)
      throw new UnsupportedException(className);

    RegistryObject response = function.execute(request);

    return response;
  }
View Full Code Here

Examples of org.boris.xlloop.IFunction

        String n = toName(f);
        if (n == null) {
            return;
        }
        try {
            IFunction fn = create(f);
            if (fn != null) {
                System.out.println("Adding script: " + n);
                scripts.put(n, fn);
            } else {
                if (!f.getName().endsWith(".vc")) {
View Full Code Here

Examples of org.boris.xlloop.IFunction

        return fs;
    }

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        IFunction f = (IFunction) scripts.get(name);
        if (f == null) {
            throw new RequestException("#Unknown script: " + name);
        }
        return f.execute(context, args);
    }
View Full Code Here

Examples of org.boris.xlloop.IFunction

        FunctionInformation fi = AnnotationHelper.extract(name, xf);
        if (fi != null) {
            name = fi.getName();
            information.put(name, fi);
        }
        IFunction f = (IFunction) methods.get(name);
        if (f instanceof InstanceMethod) {
            OverloadedMethod om = new OverloadedMethod();
            om.add((InstanceMethod) f);
            om.add(new InstanceMethod(c, instance, m, converter));
            methods.put(name, om);
View Full Code Here

Examples of org.boris.xlloop.IFunction

            }
        }
    }

    public XLoper execute(IFunctionContext context, String name, XLoper[] args) throws RequestException {
        IFunction f = (IFunction) methods.get(name);
        if (f == null) {
            throw new RequestException("#Unknown method: " + name);
        }
        return f.execute(context, args);
    }
View Full Code Here

Examples of org.boris.xlloop.IFunction

            FunctionInformation fi = (FunctionInformation) information.get(key);
            if (fi != null) {
                functions.add(fi);
                continue;
            }
            IFunction f = (IFunction) methods.get(key);
            fi = new FunctionInformation(key);
            if (f instanceof InstanceMethod) {
                try {
                    InstanceMethod im = (InstanceMethod) f;
                    ParameterNameExtractor pne = new ParameterNameExtractor(im.clazz);
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.