Tea Java Runtime API
Version 3.2.5

com.pdmfc.tea.modules.reflect
Class SModuleReflect

java.lang.Object
  extended by com.pdmfc.tea.modules.SModule
      extended by com.pdmfc.tea.modules.reflect.SModuleReflect

public class SModuleReflect
extends SModule

Package of commands for reflection.


Constructor Summary
SModuleReflect()
           
 
Method Summary
 void end()
          Signals that the package will no longer be used.
static java.lang.Object functionExecMethod(SObjFunction func, SContext context, java.lang.Object[] args)
          Invokes a java method on the given class from tea arguments
 void init(STeaRuntime context)
          Populates the context with commands and variables.
static java.lang.Object java2Tea(java.lang.Object obj, SContext context)
           
 void stop()
          Signals that the package will not be used until a call to the start() method is made again.
static java.lang.Object tea2Java(java.lang.Object obj)
           
 
Methods inherited from class com.pdmfc.tea.modules.SModule
start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SModuleReflect

public SModuleReflect()
Method Detail

init

public void init(STeaRuntime context)
          throws STeaException
Description copied from class: SModule
Populates the context with commands and variables. If this method is redefined in a derived class then the implementation in the derived class is always expected to call this implementation.

Overrides:
init in class SModule
Parameters:
context - Reference to the STeaRuntime object to be populated.
Throws:
STeaException

stop

public void stop()
Description copied from class: SModule
Signals that the package will not be used until a call to the start() method is made again. This implementation does nothing.

Overrides:
stop in class SModule

end

public void end()
Description copied from class: SModule
Signals that the package will no longer be used. That means that the commands that may have been created inside the SContext passed to the init() method will not be used again. Resources allocated to the commands may be freed. This implementation does nothing.

Overrides:
end in class SModule

functionExecMethod

public static java.lang.Object functionExecMethod(SObjFunction func,
                                                  SContext context,
                                                  java.lang.Object[] args)
                                           throws STeaException
Invokes a java method on the given class from tea arguments

Throws:
STeaException

java2Tea

public static java.lang.Object java2Tea(java.lang.Object obj,
                                        SContext context)
                                 throws STeaException
Throws:
STeaException

tea2Java

public static java.lang.Object tea2Java(java.lang.Object obj)
                                 throws STeaException
Throws:
STeaException

Tea Java Runtime API
Version 3.2.5

© 2009 PDM&FC, All Rights Reserved.