Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.sablecc.ant.taskdef
Class Sablecc  view Sablecc download Sablecc.java

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended byorg.sablecc.ant.taskdef.Sablecc
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer

public class Sablecc
extends org.apache.tools.ant.taskdefs.MatchingTask

Parser generator task based on SableCC parser generator. This task requires the following arguments:

and is based on MatchingTask which means includes and exludes are done in a standard fashion.


Field Summary
private  java.io.File destDir
           
private  java.io.File srcDir
           
private  boolean withTools
           
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
Sablecc()
           
 
Method Summary
private  void doSableccCompile(java.lang.String[] files)
          Peforms a generation of parsers using the SableCC Compiler Compiler.
 void execute()
          Called by the project to let the task do its work.
 void setOutputDirectory(java.lang.String d)
          Sets the destinion where the generated files should be placed.
 void setSrc(java.lang.String d)
          Sets the grammars directory name.
 void setWithtools(boolean b)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

srcDir

private java.io.File srcDir

destDir

private java.io.File destDir

withTools

private boolean withTools
Constructor Detail

Sablecc

public Sablecc()
Method Detail

setSrc

public void setSrc(java.lang.String d)
Sets the grammars directory name.


setWithtools

public void setWithtools(boolean b)

setOutputDirectory

public void setOutputDirectory(java.lang.String d)
Sets the destinion where the generated files should be placed.


execute

public void execute()
             throws org.apache.tools.ant.BuildException
Description copied from class: org.apache.tools.ant.Task
Called by the project to let the task do its work. This method may be called more than once, if the task is invoked more than once. For example, if target1 and target2 both depend on target3, then running "ant target1 target2" will run all tasks in target3 twice.


doSableccCompile

private void doSableccCompile(java.lang.String[] files)
Peforms a generation of parsers using the SableCC Compiler Compiler.