GraphLab Project

graphlab.plugins.commandline.parsers
Class InwardCommandParser

java.lang.Object
  extended by graphlab.plugins.commandline.parsers.InwardCommandParser

public class InwardCommandParser
extends java.lang.Object

Author:
Mohammad Ali Rostatmi

Field Summary
 java.util.HashMap<java.lang.String,java.lang.String> abbrs
           
 java.util.HashMap<java.lang.String,java.lang.reflect.Method> commands
           
static java.lang.String evaluations
           
 java.util.HashMap<java.lang.reflect.Method,java.lang.Object> methodObjects
          the Objects that the methods should be invoked on.
 
Constructor Summary
InwardCommandParser(Interpreter interpreter, Shell shell)
           
 
Method Summary
 void addCommands(java.lang.Object o)
          imports all commands stored in annotated methods of o
 java.lang.Object evaluateCommand(java.lang.String s, java.lang.String name, java.lang.String abbr)
           
 void help()
           
 void help(java.lang.String command)
           
 java.lang.Object parseShell(java.lang.String command, java.lang.Object[] ps, Interpreter in)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

public java.util.HashMap<java.lang.String,java.lang.reflect.Method> commands

abbrs

public java.util.HashMap<java.lang.String,java.lang.String> abbrs

evaluations

public static java.lang.String evaluations

methodObjects

public java.util.HashMap<java.lang.reflect.Method,java.lang.Object> methodObjects
the Objects that the methods should be invoked on.

Constructor Detail

InwardCommandParser

public InwardCommandParser(Interpreter interpreter,
                           Shell shell)
Method Detail

help

public void help()

help

public void help(java.lang.String command)

evaluateCommand

public java.lang.Object evaluateCommand(java.lang.String s,
                                        java.lang.String name,
                                        java.lang.String abbr)

addCommands

public void addCommands(java.lang.Object o)
imports all commands stored in annotated methods of o

Parameters:
o -

parseShell

public java.lang.Object parseShell(java.lang.String command,
                                   java.lang.Object[] ps,
                                   Interpreter in)
                            throws ShellCommandException
Throws:
ShellCommandException

GraphLab Project