Examples of aliases()


Examples of com.orientechnologies.common.console.annotation.ConsoleCommand.aliases()

      if (!commandLowerCase.startsWith(commandName.toString())) {
        if (ann == null)
          continue;

        String[] aliases = ann.aliases();
        if (aliases == null || aliases.length == 0)
          continue;

        boolean aliasMatch = false;
        for (String alias : aliases) {
View Full Code Here

Examples of com.orientechnologies.common.console.annotation.ConsoleCommand.aliases()

      if (!commandLowerCase.startsWith(commandName.toString())) {
        if (ann == null)
          continue;

        String[] aliases = ann.aliases();
        if (aliases == null || aliases.length == 0)
          continue;

        boolean aliasMatch = false;
        for (String alias : aliases) {
View Full Code Here

Examples of com.sk89q.intake.Command.aliases()

        for (Method method : object.getClass().getDeclaredMethods()) {
            Command definition = method.getAnnotation(Command.class);
            if (definition != null) {
                CommandCallable callable = build(object, method, definition);
                dispatcher.registerCommand(callable, definition.aliases());
            }
        }
    }

    /**
 
View Full Code Here

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

    public void registerMethodsAsCommands(Dispatcher dispatcher, Object object) throws ParametricException {
        for (Method method : object.getClass().getDeclaredMethods()) {
            Command definition = method.getAnnotation(Command.class);
            if (definition != null) {
                CommandCallable callable = build(object, method, definition);
                dispatcher.registerCommand(callable, definition.aliases());
            }
        }
    }

    /**
 
View Full Code Here

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

                }

                Command cmd = method.getAnnotation(Command.class);

                stream.println("|-");
                stream.print("| " + prefix + cmd.aliases()[0]);
                stream.print(" || ");

                if (method.isAnnotationPresent(CommandPermissions.class)) {
                    CommandPermissions perms =
                            method.getAnnotation(CommandPermissions.class);
View Full Code Here

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

                }

                stream.print(" || ");

                boolean firstAlias = true;
                if (cmd.aliases().length != 0) {
                    for (String alias : cmd.aliases()) {
                        if (!firstAlias) stream.print("<br />");
                        stream.print(prefix + alias);
                        firstAlias = false;
                    }
View Full Code Here

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

                stream.print(" || ");

                boolean firstAlias = true;
                if (cmd.aliases().length != 0) {
                    for (String alias : cmd.aliases()) {
                        if (!firstAlias) stream.print("<br />");
                        stream.print(prefix + alias);
                        firstAlias = false;
                    }
                }
View Full Code Here

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

                            method.getAnnotation(NestedCommand.class);

                    Class<?>[] nestedClasses = nested.value();
                    writePermissionsWikiTable(stream,
                            Arrays.asList(nestedClasses),
                            prefix + cmd.aliases()[0] + " ");
                }
            }
        }
    }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.Relation.aliases()

    NodeRelation nodeRel = translate1("ex:res1 rdf:type ex:Class1", "engine/type-bridge.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.EMPTY_SET, nodeRel.variables());
  }

  public void testFindNoMatch() {
    assertNull(translate1("ex:res1 ex:foo ?foo", "engine/type-bridge.n3"));
View Full Code Here

Examples of java.nio.charset.Charset.aliases()

      System.out.print('\t');
      Charset cs = entry.getValue();
      System.out.print(cs.name());
      System.out.print('\t');
     
      for (String aliase : cs.aliases()) {
        System.out.print(aliase);
        System.out.print(",");
      }
      System.out.println();
    }
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.