fr.umlv.tatoo.cc.common.main
Class AbstractTask<B extends GeneratorBean>

java.lang.Object
  extended by fr.umlv.tatoo.cc.common.main.AbstractTask<B>
Type Parameters:
B - type of the bean associated to this task
Direct Known Subclasses:
EBNFTask, LexerTask, ParserTask, ToolsTask

public abstract class AbstractTask<B extends GeneratorBean>
extends Object

Main of the parser generator.

Author:
remi

Nested Class Summary
 class AbstractTask.Extension
           
static class AbstractTask.FileAlias
           
 class AbstractTask.Generated
           
static class AbstractTask.InputFile
           
 class AbstractTask.InputFiles
           
protected static class AbstractTask.Package
          Base class of package sub-task.
 
Constructor Summary
AbstractTask(B bean, AliasPrototype[] aliases)
           
 
Method Summary
 B bean()
           
 AbstractTask.Extension createExtension()
           
 AbstractTask.Generated createGenerated()
           
 AbstractTask.InputFiles createInputFiles()
           
abstract  AbstractTask.Package createPackage()
           
protected abstract  Unit getDefaultUnit()
           
protected  void registerInputFile(Unit unit, File inputFile)
           
 void setDefaultExtensions(boolean registerDefaultExtensions)
           
 void setDestination(File destination)
           
 void setLogLevel(String level)
           
 void setPackagePrefix(String packagePrefix)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractTask

public AbstractTask(B bean,
                    AliasPrototype[] aliases)
Method Detail

setDestination

public void setDestination(File destination)

setPackagePrefix

public void setPackagePrefix(String packagePrefix)

setValidating

public void setValidating(boolean validating)

setLogLevel

public void setLogLevel(String level)

setDefaultExtensions

public void setDefaultExtensions(boolean registerDefaultExtensions)

createInputFiles

public AbstractTask.InputFiles createInputFiles()

registerInputFile

protected void registerInputFile(Unit unit,
                                 File inputFile)

getDefaultUnit

protected abstract Unit getDefaultUnit()

createExtension

public AbstractTask.Extension createExtension()

createGenerated

public AbstractTask.Generated createGenerated()

createPackage

public abstract AbstractTask.Package createPackage()

bean

public B bean()