|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.xmac.DocInfo
This class is essentially a container for frequently used data. It is passed as an object between the various classes.
Constructor Summary | |
DocInfo(org.w3c.dom.Document domDocument)
Constructs a new DocInfo object. |
Method Summary | |
java.lang.String |
getBaseDirectory()
Fetch the current base of the tree. |
java.lang.String |
getClassName()
Get the name of the current class. |
org.w3c.dom.Document |
getConfigDoc()
Get the current configuration DOM document. |
org.w3c.dom.Document |
getDOMDoc()
Get the DOM document that is currently being parsed. |
int |
getIndentLevel()
Fetch the current indent level. |
java.lang.String |
getInputFileName()
Fetch the name of the input .xmac file. |
boolean |
getMainMethodGeneration()
Do we want to generate a main method? |
boolean |
getOutputIsQuiet()
Get the output verbosity mode. |
java.io.Writer |
getOutputStream()
Fetch the current output file stream. |
java.lang.Object |
getParser(java.lang.String tag)
Get a parser associated with a tag name from the hashtable. |
java.lang.String |
getPkgName()
Get the name of the current package. |
int |
getSpacesPerIndentLevel()
Fetch the current number of spaces per indent level. |
boolean |
getTestVectorGenerationSetting()
Do we want to generate test vectors? |
void |
setBaseDirectory(java.lang.String basedir)
Set the base directory of the tree. |
void |
setClassName(java.lang.String className)
Set the name of the current class. |
void |
setConfigDoc(org.w3c.dom.Document configDoc)
Set the configuration DOM document. |
void |
setDefaultParsers()
Sets up the default parsers to use. |
void |
setIndentLevel(int indentLevel)
Set the current indent level for the output java code. |
void |
setInputFileName(java.lang.String fileName)
Sets the name of the input .xmac file. |
void |
setMainMethodGeneration(boolean generateMainMethod)
Set whether or not to generate a main method. |
void |
setOutputQuiet(boolean quiet)
Set the output to quiet. |
void |
setOutputStream(java.io.FileWriter fw)
Set the output stream of the output file. |
void |
setParser(java.lang.String tag,
java.lang.Object parser)
Add a new parser to the hashtable. |
void |
setPkgName(java.lang.String pkgName)
Set the current name of the package that is being parsed. |
void |
setSpacesPerIndentLevel(int spacesPerIndent)
Set the number of spaces for each indent level. |
void |
setTestVectorGeneration(boolean generateVect)
Set whether or not to generate test vectors. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DocInfo(org.w3c.dom.Document domDocument)
domDocument
- The DOM Document
that we're parsing.Method Detail |
public boolean getTestVectorGenerationSetting()
public void setTestVectorGeneration(boolean generateVect)
generateVect
- A boolean to determine if we want to generate test vectors.public boolean getMainMethodGeneration()
public void setMainMethodGeneration(boolean generateMainMethod)
generateMainMethod
- To generate a main method or not, that is the question.public org.w3c.dom.Document getDOMDoc()
public void setConfigDoc(org.w3c.dom.Document configDoc)
configDoc
- The DOM Document of the current configuration
file.
public org.w3c.dom.Document getConfigDoc()
public void setOutputStream(java.io.FileWriter fw)
fw
- The FileWriter of the output file stream.
public java.io.Writer getOutputStream()
public void setParser(java.lang.String tag, java.lang.Object parser)
tag
- A String representing the name of the tag this object will parse.parser
- The Object that will parse the tag.
public java.lang.Object getParser(java.lang.String tag)
tag
- A String representing the tagname to find the parser for.
public void setPkgName(java.lang.String pkgName)
pkgName
- A String representing the name of the current package.
Note this is in fully qualified form, i.e. byucc.jhdl.Xilinx.Virtex
public java.lang.String getPkgName()
public void setClassName(java.lang.String className)
className
- A String representing the name of this class.
public java.lang.String getClassName()
public void setOutputQuiet(boolean quiet)
quiet
- Set the verbosity - true if output is quieted, false to have output.
public boolean getOutputIsQuiet()
public void setBaseDirectory(java.lang.String basedir)
basedir
- The base directory of the tree.
public java.lang.String getBaseDirectory()
public void setIndentLevel(int indentLevel)
indentLevel
- The level to indent to.public int getIndentLevel()
public void setSpacesPerIndentLevel(int spacesPerIndent)
spacesPerIndent
- The number of spaces for each indent level.public int getSpacesPerIndentLevel()
public void setInputFileName(java.lang.String fileName)
public java.lang.String getInputFileName()
public void setDefaultParsers() throws java.lang.Exception
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |