jaitools.jiffle.parser
Interface SourceGenerator

All Known Implementing Classes:
AbstractSourceGenerator, RuntimeSourceGenerator

public interface SourceGenerator

Defines methods for classes that generate runtime Java source from compiled Jiffle scripts.

Since:
1.1
Version:
$Id: SourceGenerator.java 1505 2011-03-05 11:37:43Z michael.bedward $
Author:
Michael Bedward

Method Summary
 String getSource()
          Returns the source for the runtime class.
 void setBaseClassName(String baseClassName)
          Sets the runtime base class name.
 void setRuntimeModel(Jiffle.RuntimeModel model)
          Sets the runtime model.
 

Method Detail

setRuntimeModel

void setRuntimeModel(Jiffle.RuntimeModel model)
Sets the runtime model.

Parameters:
model - runtime model

setBaseClassName

void setBaseClassName(String baseClassName)
Sets the runtime base class name.

Parameters:
baseClassName - base class name

getSource

String getSource()
                 throws JiffleException
Returns the source for the runtime class. The runtime model and base class name must be set before calling this method.

Returns:
source of the runtime class as a single String.
Throws:
JiffleException - on errors creating source
RuntimeException - if the runtime model or base class name are not set


Copyright © 2009-2011. All Rights Reserved.