cdx.scorebot.scoring.logic
Class GenericMethod

java.lang.Object
  extended by cdx.scorebot.scoring.logic.GenericMethod
Direct Known Subclasses:
Method, VoidMethod

public abstract class GenericMethod
extends java.lang.Object

evaluates a method call

Author:
David Underhill

Constructor Summary
GenericMethod(Identifier methodName, Arguments args)
          instantiate a generic method call
 
Method Summary
protected  java.util.Vector<Expression> getArgs()
          the args passed to the method, if any
protected  java.lang.String getMethodName()
          the name of the method to call
protected static void throwIAE(java.lang.String s)
          throws an IllegalMethodArgsException with the specified string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericMethod

public GenericMethod(Identifier methodName,
                     Arguments args)
instantiate a generic method call

Parameters:
methodName - the name of the method
args - the arguments to the method call
Method Detail

throwIAE

protected static void throwIAE(java.lang.String s)
                        throws IllegalMethodArgsException
throws an IllegalMethodArgsException with the specified string

Throws:
IllegalMethodArgsException

getMethodName

protected java.lang.String getMethodName()
the name of the method to call


getArgs

protected java.util.Vector<Expression> getArgs()
the args passed to the method, if any