Package java_cup.anttask
Class CUPTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- java_cup.anttask.CUPTask
-
- All Implemented Interfaces:
java.lang.Cloneable
public class CUPTask extends org.apache.tools.ant.Task
-
-
Constructor Summary
Constructors Constructor Description CUPTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
executes the task parses all attributes and validates options...java.lang.String
getDestdir()
Gets the value of destdirjava.lang.String
getExpect()
Gets the value of expectboolean
getForce()
Gets the value of forcejava.lang.String
getPackage()
Gets the value of _packagejava.lang.String
getParser()
Gets the value of parserboolean
getQuiet()
Gets the value of quietjava.lang.String
getSrcfile()
Get the Srcfile value.java.lang.String
getSymbols()
Gets the value of symbolsprotected java.lang.String
inspect(java.lang.String cupfile)
Let's search for package nameboolean
isCompact_red()
Gets the value of compact_redboolean
isDebug()
Gets the value of debugboolean
isDebugSymbols()
Gets the value of debugboolean
isDump()
Gets the value of dumpboolean
isDump_grammar()
Gets the value of dump_grammarboolean
isDump_states()
Gets the value of dump_statesboolean
isDump_tables()
Gets the value of dump_tablesboolean
isGenericlabels()
boolean
isInterface()
Gets the value of _interfaceboolean
isLocations()
Gets the value of locationsboolean
isNonterms()
Gets the value of nontermsboolean
isNopositions()
Gets the value of nopositionsboolean
isNoscanner()
Gets the value of noscannerboolean
isNosummary()
Gets the value of nosummaryboolean
isNowarn()
Gets the value of nowarnboolean
isProgress()
Gets the value of progressboolean
isTime()
Gets the value of timeboolean
isXmlactions()
void
setCompact_red(boolean argCompact_red)
Sets the value of compact_redvoid
setDebug(boolean argDebug)
Sets the value of debugvoid
setDebugSymbols(boolean argDebug)
Sets the value of debugvoid
setDestdir(java.lang.String destdir)
Sets the value of destdirvoid
setDump(boolean argDump)
Sets the value of dumpvoid
setDump_grammar(boolean argDump_grammar)
Sets the value of dump_grammarvoid
setDump_states(boolean argDump_states)
Sets the value of dump_statesvoid
setDump_tables(boolean argDump_tables)
Sets the value of dump_tablesvoid
setExpect(java.lang.String argExpect)
Sets the value of expectvoid
setForce(boolean argforce)
Sets the value of forcevoid
setGenericlabels(boolean genericlabels)
void
setInterface(boolean arg_interface)
Sets the value of _interfacevoid
setLocations(boolean argLocations)
Sets the value of locationsvoid
setNonterms(boolean argNonterms)
Sets the value of nontermsvoid
setNopositions(boolean argNopositions)
Sets the value of nopositionsvoid
setNoscanner(boolean argNoscanner)
Sets the value of noscannervoid
setNosummary(boolean argNosummary)
Sets the value of nosummaryvoid
setNowarn(boolean argNowarn)
Sets the value of nowarnvoid
setPackage(java.lang.String arg_package)
Sets the value of _packagevoid
setParser(java.lang.String argParser)
Sets the value of parservoid
setProgress(boolean argProgress)
Sets the value of progressvoid
setQuiet(boolean argquiet)
Sets the value of quietvoid
setSrcfile(java.lang.String newSrcfile)
Set the Srcfile value.void
setSymbols(java.lang.String argSymbols)
Sets the value of symbolsvoid
setTime(boolean argTime)
Sets the value of timevoid
setXmlactions(boolean xmlactions)
-
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
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildException
executes the task parses all attributes and validates options...- Overrides:
execute
in classorg.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
-
isDebugSymbols
public boolean isDebugSymbols()
Gets the value of debug- Returns:
- the value of debug
-
setDebugSymbols
public void setDebugSymbols(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
-
isLocations
public boolean isLocations()
Gets the value of locations- Returns:
- the value of locations
-
setLocations
public void setLocations(boolean argLocations)
Sets the value of locations- Parameters:
argLocations
- Value to assign to this.locations
-
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
-
isXmlactions
public boolean isXmlactions()
-
setXmlactions
public void setXmlactions(boolean xmlactions)
-
isGenericlabels
public boolean isGenericlabels()
-
setGenericlabels
public void setGenericlabels(boolean genericlabels)
-
-