WISA.wisa3D.shell
Class CmdInfo

java.lang.Object
  |
  +--WISA.wisa3D.shell.CmdInfo
Direct Known Subclasses:
ClassCmdInfo, Wisa3DFrameCmdInfo, Wisa3DPanelCmdInfo

public abstract class CmdInfo
extends java.lang.Object


Constructor Summary
CmdInfo()
           
 
Method Summary
abstract  boolean accept(java.lang.Object o)
          Returns true if this CmdInfo supports Objects of the class of the given Object.
 java.lang.String[] getMethodNames(java.lang.Object o)
          Returns all names of the methods available for the given Object or null if this Object is not accepted by this CmdInfo.
abstract  java.lang.reflect.Method[] getMethods(java.lang.Object o)
          Returns all methods available for the given Object or null if this Object is not accepted by this CmdInfo.
abstract  java.lang.String[] getVars(java.lang.Object o)
          Returns all variables available for the given Object or null if this Object is not accepted by this CmdInfo.
 java.lang.Object invoke(java.lang.Object o, java.lang.reflect.Method m, java.lang.Object[] args)
          Invoke the given Method of the given Object with the given arguments.
 java.lang.Object invoke(java.lang.Object o, java.lang.String m, java.lang.Object[] args)
          Invoke the given Method of the given Object with the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdInfo

public CmdInfo()
Method Detail

accept

public abstract boolean accept(java.lang.Object o)
Returns true if this CmdInfo supports Objects of the class of the given Object.

Parameters:
o - The Object to be determined if it is supported by this CmdInfo.
Returns:
True if the Class of the Object is supported by this CmdInfo.

getMethodNames

public java.lang.String[] getMethodNames(java.lang.Object o)
Returns all names of the methods available for the given Object or null if this Object is not accepted by this CmdInfo.

Parameters:
o - The Object whose method names should be returned.
Returns:
The names of the methods for this Object.

getMethods

public abstract java.lang.reflect.Method[] getMethods(java.lang.Object o)
Returns all methods available for the given Object or null if this Object is not accepted by this CmdInfo.

Parameters:
o - The Object whose methods should be returned.
Returns:
The methods for this Object.

getVars

public abstract java.lang.String[] getVars(java.lang.Object o)
Returns all variables available for the given Object or null if this Object is not accepted by this CmdInfo.

Parameters:
o - The Object whose variables should be returned.
Returns:
The names of the variables contained in this Object.

invoke

public java.lang.Object invoke(java.lang.Object o,
                               java.lang.String m,
                               java.lang.Object[] args)
                        throws ConsoleException
Invoke the given Method of the given Object with the given arguments.

Parameters:
o - The Object where the Method should be called.
m - The Name of the method to be invoked.
args - The arguments with which the Method should be invoked. Can be null if this Method needs no arguments.
Returns:
The Object returned by the Method or null.
ConsoleException

invoke

public java.lang.Object invoke(java.lang.Object o,
                               java.lang.reflect.Method m,
                               java.lang.Object[] args)
                        throws ConsoleException
Invoke the given Method of the given Object with the given arguments.

Parameters:
o - The Object where the Method should be called.
m - The Method to be invoked.
args - The arguments with which the Method should be invoked. Can be null if this Method needs no arguments.
Returns:
The Object returned by the Method or null.
ConsoleException