org.cesta.util.antlr
Class StringTemplateHelper

java.lang.Object
  extended by org.cesta.util.antlr.StringTemplateHelper

public class StringTemplateHelper
extends java.lang.Object

Helper class with few useful functions, which can help to work with StringTemplate easier.

Author:
Tobias Smolka

Constructor Summary
StringTemplateHelper()
           
 
Method Summary
static void registerGroupLoader(java.lang.String templateDirs)
          Registers template group loader, that will load group template files from provided directories with simple default listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTemplateHelper

public StringTemplateHelper()
Method Detail

registerGroupLoader

public static void registerGroupLoader(java.lang.String templateDirs)
Registers template group loader, that will load group template files from provided directories with simple default listener. Group loader uses Thread's context classloader to load from directories, therefore directories can be anywhere on class path.

Parameters:
templateDirs - list of directories divided by ":"