Ejemplo n.º 1
0
 /**
  * Evaluate a command
  *
  * @param cmdname the name of the command
  * @param args the commands arguments as ExpressionValue's
  * @return the geo elements created
  */
 public GeoElement[] evalCommand(String cmdname, ExpressionValue[] args) {
   // don't allow translated command names - causes problems if file edited
   Command cmd = new Command(kernel, cmdname, false);
   for (int i = 0; i < args.length; i++) {
     cmd.addArgument(getNode(args[i]));
   }
   return algProcessor.processCommand(cmd, true);
 }