terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.eval.converters
Class ToShell

java.lang.Object
  extended by com.codemesh.terp.eval.converters.ToShell
All Implemented Interfaces:
Converter<ShellExecutor>

public class ToShell
extends java.lang.Object
implements Converter<ShellExecutor>

Created by IntelliJ IDEA. User: alex Date: Apr 10, 2009 Time: 11:04:13 AM To change this template use File | Settings | File Templates.


Constructor Summary
ToShell()
           
 
Method Summary
 ShellExecutor fromObject(java.lang.Object obj, TerpContext ctx)
          Converts the given object into an object of the target type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToShell

public ToShell()
Method Detail

fromObject

public ShellExecutor fromObject(java.lang.Object obj,
                                TerpContext ctx)
Description copied from interface: Converter
Converts the given object into an object of the target type. Conversions can be implemented in any way that makes sense. Normally, converters will return null for null, but some converters may choose to interpret null as an indicator to return a default-initialized target object. An example of this type of conversion is the ShellExecutor. null simply indicates that no preference overrides of any kind have been provided.

Specified by:
fromObject in interface Converter<ShellExecutor>
Parameters:
obj - the source object.
ctx - the context in which the conversion takes place.
Returns:
an instance of the target type or null.

terp - the Codemesh Modular
Template Interpreter v1.3.309

Copyright © 2008-2012 by Codemesh, Inc. All Rights Reserved.