Examples of apply()


Examples of com.dragome.compiler.graph.transformation.Transformation.apply()

    do
    {
      Transformation t= Transformation.select(this, node);
      if (t == null)
        break;
      node= t.apply();
      dump("After transformation");
    }
    while (true);

    if (node.getDomChildren().size() > 0)
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.Border.apply()

                    getElement().getStyle().clearBorderStyle();
                    getElement().getStyle().clearBorderColor();
                    getElement().getStyle().clearBorderWidth();
                    getElement().getStyle().clearProperty("borderRadius");
                } else {
                    b.apply(getElement());
                }
                requestLayout();
            }
        });
        cursor.addChangeListener(new IChangeListener() {
View Full Code Here

Examples of com.eagerlogic.cubee.client.style.styles.Padding.apply()

            public void onChanged(Object sender) {
                Padding p = padding.get();
                if (p == null) {
                    getElement().getStyle().setPadding(0.0, com.google.gwt.dom.client.Style.Unit.PX);
                } else {
                    p.apply(getElement());
                }
                requestLayout();
            }
        });
        padding.invalidate();
View Full Code Here

Examples of com.espertech.esper.epl.datetime.eval.ExprDotNodeFilterAnalyzerDTIntervalDesc.apply()

    private static void analyzeDotNode(ExprDotNode dotNode, QueryGraph queryGraph) {
        ExprDotNodeFilterAnalyzerDTIntervalDesc interval = dotNode.getIntervalFilterDesc();
        if (interval == null) {
            return;
        }
        interval.apply(queryGraph);
    }

    private static void analyzeRelationalOpNode(ExprRelationalOpNode relNode, QueryGraph queryGraph) {
        if ( ((relNode.getChildNodes().get(0) instanceof ExprIdentNode)) &&
             ((relNode.getChildNodes().get(1) instanceof ExprIdentNode)))
View Full Code Here

Examples of com.espertech.esper.epl.datetime.eval.ExprDotNodeFilterAnalyzerDesc.apply()

    private static void analyzeDotNode(ExprDotNode dotNode, QueryGraph queryGraph) {
        ExprDotNodeFilterAnalyzerDesc interval = dotNode.getExprDotNodeFilterAnalyzerDesc();
        if (interval == null) {
            return;
        }
        interval.apply(queryGraph);
    }

    private static void analyzeRelationalOpNode(ExprRelationalOpNode relNode, QueryGraph queryGraph) {
        if ( ((relNode.getChildNodes()[0] instanceof ExprIdentNode)) &&
             ((relNode.getChildNodes()[1] instanceof ExprIdentNode)))
View Full Code Here

Examples of com.foreach.cuke.rest.authentication.Authentication.apply()

    Authentication defaultAuthentication = context.lookup( "rest.base.auth" );

    if ( defaultAuthentication != null ) {
      LOG.debug( "applying default request authentication {}", defaultAuthentication );
      defaultAuthentication.apply( uri, headers );
    }

    MultiValueMap<String, Object> values = new LinkedMultiValueMap<String, Object>();

    if ( dataTable != null ) {
View Full Code Here

Examples of com.foundationdb.sql.optimizer.rule.ASTStatementLoader.apply()

            stmt = subqueryFlattener.flatten((DMLStatementNode)stmt);
        } catch (StandardException ex) {
            throw new SQLParserInternalException(ex);
        }
        plan.setPlan(new AST((DMLStatementNode)stmt, null));
        astStatementLoader.apply(plan);

        List<TableName> tableNames = new ArrayList<>();
        Deque<PlanNode> nodeQueue = new LinkedList<>();
        nodeQueue.add(plan.getPlan());
        while(!nodeQueue.isEmpty()){
View Full Code Here

Examples of com.github.fge.jsonpatch.JsonPatch.apply()

        JsonNode patchAsNode = mapper.readValue(readerInterceptorContext.getInputStream(), JsonNode.class);
        JsonPatch patch = JsonPatch.fromJson(patchAsNode);

        try {
            // Apply the patch
            JsonNode result = patch.apply(serverState);

            // Stream the result & modify the stream on the readerInterceptor
            ByteArrayOutputStream resultAsByteArray = new ByteArrayOutputStream();
            mapper.writeValue(resultAsByteArray, result);
            readerInterceptorContext.setInputStream(new ByteArrayInputStream(resultAsByteArray.toByteArray()));
View Full Code Here

Examples of com.github.jknack.handlebars.Template.apply()

            context.put(PLUGIN_JS_RESOURCES_PARAM, app.getPluginsJsResources());
            context.put(PLUGIN_CSS_RESOURCES_PARAM, app.getPluginsCssResources());
            TemplateLoader templateLoader = new ServletContextTemplateLoader(request.getServletContext(), "/", ".hbs");
            Handlebars handlebars = new Handlebars(templateLoader);
            Template template = handlebars.compile("index");
            indexHtml = template.apply(context);
        }
        return indexHtml;
    }
}
View Full Code Here

Examples of com.github.mustachejava.reflect.Guard.apply()

    CompilableClassGuard stringClassGuard = new CompilableClassGuard(0, "");
    List<CompilableGuard> guards = new ArrayList<CompilableGuard>();
    guards.add(stringClassGuard);

    Guard testGuard = compile(guards);
    assertTrue("string is ok", testGuard.apply(new Object[]{"test", 1}));
    assertFalse("integer is not ok", testGuard.apply(new Object[]{1, "test"}));
  }

}
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.