terp - the Codemesh Modular
Template Interpreter v1.3.309

com.codemesh.terp.eval.converters
Class ToJuggernet

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

public class ToJuggernet
extends java.lang.Object
implements Converter<CodegenExecutor>

A converter for JuggerNET code generator tasks. This converter is registered with terp under the ^juggernet alias.


Field Summary
static java.lang.String ALIAS
           
protected static ToFile TO_FILE
           
 
Constructor Summary
ToJuggernet()
           
 
Method Summary
 CodegenExecutor fromFile(java.io.File path)
           
 CodegenExecutor fromMap(java.util.Map<java.lang.String,java.lang.Object> map)
           
 CodegenExecutor fromObject(java.lang.Object obj, TerpContext ctx)
          Converts the given object into an object of the target type.
 CodegenExecutor fromString(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALIAS

public static final java.lang.String ALIAS
See Also:
Constant Field Values

TO_FILE

protected static final ToFile TO_FILE
Constructor Detail

ToJuggernet

public ToJuggernet()
Method Detail

fromObject

public CodegenExecutor fromObject(java.lang.Object obj,
                                  TerpContext ctx)
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<CodegenExecutor>
Parameters:
obj - the source object.
ctx - the context in which the conversion takes place.
Returns:
an instance of the target type or null.

fromString

public CodegenExecutor fromString(java.lang.String path)

fromFile

public CodegenExecutor fromFile(java.io.File path)

fromMap

public CodegenExecutor fromMap(java.util.Map<java.lang.String,java.lang.Object> map)

terp - the Codemesh Modular
Template Interpreter v1.3.309

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