Top Description Fields Constructors Methods
org.antlr.stringtemplate

public Class CommonGroupLoader

extends PathGroupLoader
Class Inheritance
Imports
java.io.*

A simple loader that looks only in the directory(ies) you specify in the ctor, but it uses the classpath rather than absolute dirs so it can be used when the ST application is jar'd up. You may specify the char encoding.

Field Summary

Inherited from org.antlr.stringtemplate.PathGroupLoader:
dirserrorsfileCharEncoding

Constructor Summary

AccessConstructor and Description
public
public
CommonGroupLoader(String dirStr, StringTemplateErrorListener errors)

Pass a single dir or multiple dirs separated by colons from which to load groups/interfaces.

Method Summary

Modifier and TypeMethod and Description
protected BufferedReader
locate(String name)

Overrides org.antlr.stringtemplate.PathGroupLoader.locate.

Look in each relative directory for the file called 'name'.
Inherited from org.antlr.stringtemplate.PathGroupLoader:
errorerrorgetFileCharEncodinggetInputStreamReaderloadGrouploadGrouploadGrouploadInterfacesetFileCharEncoding

Constructor Detail

CommonGroupLoaderback to summary
public CommonGroupLoader(StringTemplateErrorListener errors)
CommonGroupLoaderback to summary
public CommonGroupLoader(String dirStr, StringTemplateErrorListener errors)

Pass a single dir or multiple dirs separated by colons from which to load groups/interfaces. These are interpreted as relative paths to be used with CLASSPATH to locate groups. E.g., If you pass in "org/antlr/codegen/templates" and ask to load group "foo" it will try to load via classpath as "org/antlr/codegen/templates/foo".

Method Detail

locateback to summary
protected BufferedReader locate(String name) throws IOException

Overrides org.antlr.stringtemplate.PathGroupLoader.locate.

Look in each relative directory for the file called 'name'. Load via classpath.