|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.util.xmac.TagParser
byucc.jhdl.util.xmac.CodeParser
Parse the user defined code segments. Anything enclosed within
code tags will be copied to the output file. Note: the code tag
is not the same as a cdata block. The code within this tag will
still be parsed by the xml parser so tags can be embedded within
the code tag.
No "floating" text is allowed. All java code must be in
the code tag.
Example:
<code>
if (<get refid="i"/> == 0) {
<put refid="o">0</put>
}
</code>
Field Summary |
Fields inherited from class byucc.jhdl.util.xmac.TagParser |
docInfo |
Constructor Summary | |
CodeParser(DocInfo docInfo)
Construct a new CodeParser. |
Method Summary | |
void |
parse(org.w3c.dom.Node docRoot)
Invoke the parser. |
Methods inherited from class byucc.jhdl.util.xmac.TagParser |
checkParent, countLines, decreaseIndent, increaseIndent, indentBlock, indentLine, indentLine, outmsg, parse, strBlockToArray, writeOutput |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CodeParser(DocInfo docInfo) throws java.lang.Exception
docInfo
- The DocInfo
object that contains all the
class data and information.Method Detail |
public void parse(org.w3c.dom.Node docRoot) throws java.lang.Exception
parse
in class TagParser
docRoot
- The Node
of the code tag to process.
java.lang.Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |