java_cup.anttask
Class CUPTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by java_cup.anttask.CUPTask
All Implemented Interfaces:
java.lang.Cloneable

public class CUPTask
extends org.apache.tools.ant.Task


Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
CUPTask()
           
 
Method Summary
 void execute()
          executes the task parses all attributes and validates options...
 java.lang.String getDestdir()
          Gets the value of destdir
 java.lang.String getExpect()
          Gets the value of expect
 boolean getForce()
          Gets the value of force
 java.lang.String getPackage()
          Gets the value of _package
 java.lang.String getParser()
          Gets the value of parser
 boolean getQuiet()
          Gets the value of quiet
 java.lang.String getSrcfile()
          Get the Srcfile value.
 java.lang.String getSymbols()
          Gets the value of symbols
protected  java.lang.String inspect(java.lang.String cupfile)
          Let's search for package name
 boolean isCompact_red()
          Gets the value of compact_red
 boolean isDebug()
          Gets the value of debug
 boolean isDump_grammar()
          Gets the value of dump_grammar
 boolean isDump_states()
          Gets the value of dump_states
 boolean isDump_tables()
          Gets the value of dump_tables
 boolean isDump()
          Gets the value of dump
 boolean isInterface()
          Gets the value of _interface
 boolean isNonterms()
          Gets the value of nonterms
 boolean isNopositions()
          Gets the value of nopositions
 boolean isNoscanner()
          Gets the value of noscanner
 boolean isNosummary()
          Gets the value of nosummary
 boolean isNowarn()
          Gets the value of nowarn
 boolean isProgress()
          Gets the value of progress
 boolean isTime()
          Gets the value of time
 void setCompact_red(boolean argCompact_red)
          Sets the value of compact_red
 void setDebug(boolean argDebug)
          Sets the value of debug
 void setDestdir(java.lang.String destdir)
          Sets the value of destdir
 void setDump_grammar(boolean argDump_grammar)
          Sets the value of dump_grammar
 void setDump_states(boolean argDump_states)
          Sets the value of dump_states
 void setDump_tables(boolean argDump_tables)
          Sets the value of dump_tables
 void setDump(boolean argDump)
          Sets the value of dump
 void setExpect(java.lang.String argExpect)
          Sets the value of expect
 void setForce(boolean argforce)
          Sets the value of force
 void setInterface(boolean arg_interface)
          Sets the value of _interface
 void setNonterms(boolean argNonterms)
          Sets the value of nonterms
 void setNopositions(boolean argNopositions)
          Sets the value of nopositions
 void setNoscanner(boolean argNoscanner)
          Sets the value of noscanner
 void setNosummary(boolean argNosummary)
          Sets the value of nosummary
 void setNowarn(boolean argNowarn)
          Sets the value of nowarn
 void setPackage(java.lang.String arg_package)
          Sets the value of _package
 void setParser(java.lang.String argParser)
          Sets the value of parser
 void setProgress(boolean argProgress)
          Sets the value of progress
 void setQuiet(boolean argquiet)
          Sets the value of quiet
 void setSrcfile(java.lang.String newSrcfile)
          Set the Srcfile value.
 void setSymbols(java.lang.String argSymbols)
          Sets the value of symbols
 void setTime(boolean argTime)
          Sets the value of time
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CUPTask

public CUPTask()
Method Detail

execute

public void execute()
             throws org.apache.tools.ant.BuildException
executes the task parses all attributes and validates options...

Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException

inspect

protected java.lang.String inspect(java.lang.String cupfile)
Let's search for package name

Parameters:
cupfile - where we have to search for the package name
Returns:
the package folder structure

getQuiet

public boolean getQuiet()
Gets the value of quiet

Returns:
the value of quiet

setQuiet

public void setQuiet(boolean argquiet)
Sets the value of quiet

Parameters:
arg_quiet - Value to assign to this.quiet

getForce

public boolean getForce()
Gets the value of force

Returns:
the value of force

setForce

public void setForce(boolean argforce)
Sets the value of force

Parameters:
arg_package - Value to assign to this.force

getPackage

public java.lang.String getPackage()
Gets the value of _package

Returns:
the value of _package

setPackage

public void setPackage(java.lang.String arg_package)
Sets the value of _package

Parameters:
arg_package - Value to assign to this._package

getDestdir

public java.lang.String getDestdir()
Gets the value of destdir

Returns:
the value of destdir

setDestdir

public void setDestdir(java.lang.String destdir)
Sets the value of destdir

Parameters:
arg_package - Value to assign to this.destdir

isInterface

public boolean isInterface()
Gets the value of _interface

Returns:
the value of _interface

setInterface

public void setInterface(boolean arg_interface)
Sets the value of _interface

Parameters:
arg_interface - Value to assign to this._interface

getSrcfile

public java.lang.String getSrcfile()
Get the Srcfile value.

Returns:
the Srcfile value.

setSrcfile

public void setSrcfile(java.lang.String newSrcfile)
Set the Srcfile value.

Parameters:
newSrcfile - The new Srcfile value.

getParser

public java.lang.String getParser()
Gets the value of parser

Returns:
the value of parser

setParser

public void setParser(java.lang.String argParser)
Sets the value of parser

Parameters:
argParser - Value to assign to this.parser

getSymbols

public java.lang.String getSymbols()
Gets the value of symbols

Returns:
the value of symbols

setSymbols

public void setSymbols(java.lang.String argSymbols)
Sets the value of symbols

Parameters:
argSymbols - Value to assign to this.symbols

isNonterms

public boolean isNonterms()
Gets the value of nonterms

Returns:
the value of nonterms

setNonterms

public void setNonterms(boolean argNonterms)
Sets the value of nonterms

Parameters:
argNonterms - Value to assign to this.nonterms

getExpect

public java.lang.String getExpect()
Gets the value of expect

Returns:
the value of expect

setExpect

public void setExpect(java.lang.String argExpect)
Sets the value of expect

Parameters:
argExpect - Value to assign to this.expect

isCompact_red

public boolean isCompact_red()
Gets the value of compact_red

Returns:
the value of compact_red

setCompact_red

public void setCompact_red(boolean argCompact_red)
Sets the value of compact_red

Parameters:
argCompact_red - Value to assign to this.compact_red

isNowarn

public boolean isNowarn()
Gets the value of nowarn

Returns:
the value of nowarn

setNowarn

public void setNowarn(boolean argNowarn)
Sets the value of nowarn

Parameters:
argNowarn - Value to assign to this.nowarn

isNosummary

public boolean isNosummary()
Gets the value of nosummary

Returns:
the value of nosummary

setNosummary

public void setNosummary(boolean argNosummary)
Sets the value of nosummary

Parameters:
argNosummary - Value to assign to this.nosummary

isProgress

public boolean isProgress()
Gets the value of progress

Returns:
the value of progress

setProgress

public void setProgress(boolean argProgress)
Sets the value of progress

Parameters:
argProgress - Value to assign to this.progress

isDump_grammar

public boolean isDump_grammar()
Gets the value of dump_grammar

Returns:
the value of dump_grammar

setDump_grammar

public void setDump_grammar(boolean argDump_grammar)
Sets the value of dump_grammar

Parameters:
argDump_grammar - Value to assign to this.dump_grammar

isDump_states

public boolean isDump_states()
Gets the value of dump_states

Returns:
the value of dump_states

setDump_states

public void setDump_states(boolean argDump_states)
Sets the value of dump_states

Parameters:
argDump_states - Value to assign to this.dump_states

isDump_tables

public boolean isDump_tables()
Gets the value of dump_tables

Returns:
the value of dump_tables

setDump_tables

public void setDump_tables(boolean argDump_tables)
Sets the value of dump_tables

Parameters:
argDump_tables - Value to assign to this.dump_tables

isDump

public boolean isDump()
Gets the value of dump

Returns:
the value of dump

setDump

public void setDump(boolean argDump)
Sets the value of dump

Parameters:
argDump - Value to assign to this.dump

isTime

public boolean isTime()
Gets the value of time

Returns:
the value of time

setTime

public void setTime(boolean argTime)
Sets the value of time

Parameters:
argTime - Value to assign to this.time

isDebug

public boolean isDebug()
Gets the value of debug

Returns:
the value of debug

setDebug

public void setDebug(boolean argDebug)
Sets the value of debug

Parameters:
argDebug - Value to assign to this.debug

isNopositions

public boolean isNopositions()
Gets the value of nopositions

Returns:
the value of nopositions

setNopositions

public void setNopositions(boolean argNopositions)
Sets the value of nopositions

Parameters:
argNopositions - Value to assign to this.nopositions

isNoscanner

public boolean isNoscanner()
Gets the value of noscanner

Returns:
the value of noscanner

setNoscanner

public void setNoscanner(boolean argNoscanner)
Sets the value of noscanner

Parameters:
argNoscanner - Value to assign to this.noscanner