Examples of desc()


Examples of com.alibaba.dubbo.container.page.Menu.desc()

        for (PageHandler handler : PageServlet.getInstance().getMenus()) {
            String uri = ExtensionLoader.getExtensionLoader(PageHandler.class).getExtensionName(handler);
            Menu menu = handler.getClass().getAnnotation(Menu.class);
            List<String> row = new ArrayList<String>();
            row.add("<a href=\"" + uri + ".html\">" + menu.name() + "</a>");
            row.add(menu.desc());
            rows.add(row);
        }
        return new Page("Home", "Menus"new String[] {"Menu Name", "Menu Desc"}, rows);
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.desc()

                reducer.getBlockOutputs().get(0),
                stages.getOutput().getBlockInputs().get(0)), is(true));

        assertThat(mapper.getElements().size(), is(1));
        FlowElement mapperOp = single(mapper.getElements());
        assertThat(mapperOp.getDescription(), is(comp.desc("op1")));

        assertThat(reducer.getElements().size(), is(1));
        FlowElement reducerOp = single(reducer.getElements());
        assertThat(reducerOp.getDescription(), is(comp.desc("op2")));
    }
View Full Code Here

Examples of com.asakusafw.compiler.flow.FlowGraphGenerator.desc()

        FlowElement mapperOp = single(mapper.getElements());
        assertThat(mapperOp.getDescription(), is(comp.desc("op1")));

        assertThat(reducer.getElements().size(), is(1));
        FlowElement reducerOp = single(reducer.getElements());
        assertThat(reducerOp.getDescription(), is(comp.desc("op2")));
    }

    /**
     * {@link StagePlanner#plan(FlowGraph)}
     */
 
View Full Code Here

Examples of com.googlecode.aviator.runtime.type.AviatorObject.desc()


    public static Object getJavaObject(int index, AviatorObject[] args, Map<String, Object> env) {
        final AviatorObject arg = args[index];
        if (!(arg instanceof AviatorJavaType)) {
            throw new ExpressionRuntimeException(arg.desc(env) + " is not a javaType");
        }
        return env.get(((AviatorJavaType) arg).getName());
    }

View Full Code Here

Examples of com.googlecode.aviator.runtime.type.AviatorObject.desc()


    public static AviatorFunction getFunction(int index, AviatorObject[] args, Map<String, Object> env, int arity) {
        final AviatorObject arg = args[index];
        if (!(arg instanceof AviatorJavaType)) {
            throw new ExpressionRuntimeException(arg.desc(env) + " is not a function");
        }
        // special processing for "-" operator
        String name = ((AviatorJavaType) arg).getName();
        if (name.equals("-")) {
            if (arity == 2) {
View Full Code Here

Examples of com.lambdaworks.redis.SortArgs.desc()

    if (params.getOrder() != null) {
      if (params.getOrder() == Order.ASC) {
        args.asc();
      } else {
        args.desc();
      }
    }

    Boolean isAlpha = params.isAlphabetic();
    if (isAlpha != null && isAlpha) {
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command.desc()

                    stream.print(cmd.flags());
                }

                stream.print(" || ");

                if (cmd.desc() != null && !cmd.desc().equals("")) {
                    stream.print(cmd.desc());
                }

                stream.println();
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command.desc()

                    stream.print(cmd.flags());
                }

                stream.print(" || ");

                if (cmd.desc() != null && !cmd.desc().equals("")) {
                    stream.print(cmd.desc());
                }

                stream.println();
View Full Code Here

Examples of com.sk89q.minecraft.util.commands.Command.desc()

                }

                stream.print(" || ");

                if (cmd.desc() != null && !cmd.desc().equals("")) {
                    stream.print(cmd.desc());
                }

                stream.println();

                if (method.isAnnotationPresent(NestedCommand.class)) {
View Full Code Here

Examples of com.zachsthings.libcomponents.ComponentInformation.desc()

            AbstractComponent component = CommandBook.inst().getComponentManager().getComponent(componentName);
            if (component == null) {
                throw new CommandException("No such component: " + componentName);
            }
            final ComponentInformation info = component.getInformation();
            sender.sendMessage(ChatColor.YELLOW + info.friendlyName() + " - " + info.desc());
            if (info.authors().length > 0 && info.authors()[0].length() > 0) {
                sender.sendMessage(ChatColor.YELLOW + "Authors: " +
                        Arrays.toString(info.authors()).replaceAll("[(.*)]", "$1"));
            }
            Map<String, String> commands = component.getCommands();
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.