Package lipstone.joshua.parser.plugin.helpdata

Examples of lipstone.joshua.parser.plugin.helpdata.Command


    units = null;
  }
 
  @Override
  public void loadCommands() throws PluginConflictException {
    addCommand(new Command("addUnit", "add a unit to this unit converter.  Use: addUnit name conversionFactor SI-equivalent abbreviation abbreviation is optional", this));
    addCommand(new Command("removeUnit", "remove a unit from this converter.  Use: removeUnit name", this));
    for (String key : getDataMap()) {
      ArrayList<ConsCell> data = getData(key).splitOnSeparator();
      String[] abbreviations = {};
      if (data.size() > 3) {
        abbreviations = new String[data.size() - 3];
View Full Code Here


    return null;
  }
 
  @Override
  public void loadCommands() throws PluginConflictException {
    addCommand(new Command("set memory", "set memory to the last answer", this));
    addCommand(new Command("add to memory", "add the last answer to memory", this));
    addCommand(new Command("subtract from memory", "subtract the last answer from the memory", this));
    addCommand(new Command("clear memory", "clear the memory", this));
    addCommand(new Command("get memory", "get the value stored in memory", this));
  }
View Full Code Here

public class AngleCommands extends ParserPlugin implements CommandPlugin, SettingsPlugin {
 
  @Override
  public void loadCommands() throws PluginConflictException {
    addCommand(new Command("setAngle", "set the angle to Degrees, Radians, or Grads", this));
    ConsCell temp = getData("angle");
    AngleType angle = (temp == null) ? parser.getAngleType() : parser.getAngleType(temp.toString());
    parser.setAngleType(angle);
    addCommand(new Command("showAngle", "shows the active angle measurment system", this));
  }
View Full Code Here

TOP

Related Classes of lipstone.joshua.parser.plugin.helpdata.Command

Copyright © 2018 www.massapicom. 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.