frysk.hpd
Class EvalCommands

java.lang.Object
  extended by frysk.hpd.Command
      extended by frysk.hpd.ParameterizedCommand
          extended by frysk.hpd.EvalCommands
Direct Known Subclasses:
EvalCommands.Assign, EvalCommands.Print

abstract class EvalCommands
extends ParameterizedCommand

Evaluate an expression; in various forms.


Nested Class Summary
(package private) static class EvalCommands.Assign
           
private  class EvalCommands.Options
           
(package private) static class EvalCommands.Print
           
private static class EvalCommands.Printer
           
 
Constructor Summary
EvalCommands(String description, String syntax, String full)
           
 
Method Summary
(package private)  int completer(CLI cli, Input input, int cursor, List candidates)
          Complete the command's parameters.
private static void eval(CLI cli, PTSet ptset, String expression, EvalCommands.Options options)
           
(package private)  Object options()
          Return the options object (or null) which will be passed to each command option parser.
 
Methods inherited from class frysk.hpd.ParameterizedCommand
add, complete, help, interpret, interpret
 
Methods inherited from class frysk.hpd.Command
description
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EvalCommands

EvalCommands(String description,
             String syntax,
             String full)
Method Detail

options

Object options()
Description copied from class: ParameterizedCommand
Return the options object (or null) which will be passed to each command option parser.

Overrides:
options in class ParameterizedCommand

completer

int completer(CLI cli,
              Input input,
              int cursor,
              List candidates)
Description copied from class: ParameterizedCommand
Complete the command's parameters.

Specified by:
completer in class ParameterizedCommand

eval

private static void eval(CLI cli,
                         PTSet ptset,
                         String expression,
                         EvalCommands.Options options)