kawigi.problem
Class TemplateGenerator

java.lang.Object
  extended by kawigi.problem.TemplateGenerator

public class TemplateGenerator
extends java.lang.Object

This is the class that converts a ClassDecl and language into skeleton code from a template.


Constructor Summary
TemplateGenerator()
           
 
Method Summary
static Skeleton getSkeleton(ClassDecl cl, EditorLanguage language)
          Generates the output of the code template with the given ClassDecl in the given language.
static java.lang.String getTemplate(EditorLanguage language)
          Returns the (default or customized) template for the given language.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateGenerator

public TemplateGenerator()
Method Detail

getSkeleton

public static Skeleton getSkeleton(ClassDecl cl,
                                   EditorLanguage language)
Generates the output of the code template with the given ClassDecl in the given language.


getTemplate

public static java.lang.String getTemplate(EditorLanguage language)
Returns the (default or customized) template for the given language.