Tea Java Runtime API
Version 3.1.0

com.pdmfc.tea.modules.tos
Class SEmptyMethod

java.lang.Object
  |
  +--com.pdmfc.tea.modules.tos.SEmptyMethod
All Implemented Interfaces:
SObjFunction

public class SEmptyMethod
extends java.lang.Object
implements SObjFunction

Represents a method that does nothing. This is an utility class.


Constructor Summary
SEmptyMethod()
           
 
Method Summary
 java.lang.Object exec(SObjFunction obj, SContext context, java.lang.Object[] args)
          The TOS method code.
static SObjFunction singleton()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SEmptyMethod

public SEmptyMethod()
Method Detail

exec

public java.lang.Object exec(SObjFunction obj,
                             SContext context,
                             java.lang.Object[] args)
                      throws STeaException
The TOS method code. It just returns the Tea null object.
Specified by:
exec in interface SObjFunction
Following copied from interface: com.pdmfc.tea.runtime.SObjFunction
Parameters:
func - The SObjFunction that led to call this function. Most of the time is the same as the this object.
context - The context where the command should be executed.
args - Array with the arguments passed to the command.
Returns:
An Object object.
Throws:
STeaException - Thrown if there were problems executing the command.

singleton

public static SObjFunction singleton()
Returns:
Always returns the same instance of SEmptyMethod.

Tea Java Runtime API
Version 3.1.0

© 2002 PDM&FC, All Rights Reserved.