public class CFI
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.dom4j.Document |
document |
protected static java.util.HashMap |
funcMap |
protected org.dom4j.Node |
lastNode |
protected java.lang.String |
lastToken |
protected org.dom4j.Element |
root |
Constructor and Description |
---|
CFI()
Creates a new instance of CFI
|
Modifier and Type | Method and Description |
---|---|
protected org.dom4j.Node |
createFunction(CFITokenizer tn,
java.lang.String func)
Map function names.
|
org.dom4j.Document |
getDocument()
Get the document.
|
protected org.dom4j.Node |
handleBaseOperators(CFITokenizer tn,
org.dom4j.Node node) |
static void |
main(java.lang.String[] args)
The mina testing routine.
|
void |
scan(CFITokenizer tn)
Scan a line using the given tokennizer.
|
void |
scan(java.io.InputStream stream)
Scan from stream.
|
void |
scan(java.lang.String line)
Scan a line.
|
void |
scan(java.lang.String[] lines)
Scan a line.
|
protected org.dom4j.Node |
scanComment(org.dom4j.Element parent,
CFITokenizer tn)
Scan comment.
|
protected org.dom4j.Node |
scanDescription(org.dom4j.Element parent,
CFITokenizer tn)
Scan the description.
|
protected org.dom4j.Node |
scanFormat(org.dom4j.Element parent,
CFITokenizer tn)
Scan the format.
|
protected org.dom4j.Node |
scanFunction(org.dom4j.Element parent,
CFITokenizer tn,
java.lang.String name)
Scan the return.
|
protected org.dom4j.Node |
scanNextNode(CFITokenizer tn)
Scan the next element
|
protected org.dom4j.Node |
scanOperator(CFITokenizer tn)
Scan an operator.
|
java.lang.String |
toString()
Print out the scaned formular.
|
java.lang.String |
toString(org.dom4j.Node node)
Print out the scaned formular.
|
protected static java.util.HashMap funcMap
protected org.dom4j.Document document
protected org.dom4j.Element root
protected java.lang.String lastToken
protected org.dom4j.Node lastNode
public org.dom4j.Document getDocument()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(org.dom4j.Node node)
public void scan(java.io.InputStream stream) throws java.io.IOException
streaqm
- the stream to be used.java.io.IOException
public void scan(java.lang.String[] lines) throws java.io.IOException
lines
- the line array to be scanned.java.io.IOException
public void scan(java.lang.String line) throws java.io.IOException
line
- the line to be scanned.java.io.IOException
public void scan(CFITokenizer tn) throws java.io.IOException
tn
- the tokenizer.java.io.IOException
protected org.dom4j.Node scanComment(org.dom4j.Element parent, CFITokenizer tn) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node scanDescription(org.dom4j.Element parent, CFITokenizer tn) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node scanFormat(org.dom4j.Element parent, CFITokenizer tn) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node scanOperator(CFITokenizer tn) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node scanFunction(org.dom4j.Element parent, CFITokenizer tn, java.lang.String name) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node createFunction(CFITokenizer tn, java.lang.String func) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node scanNextNode(CFITokenizer tn) throws java.io.IOException
java.io.IOException
protected org.dom4j.Node handleBaseOperators(CFITokenizer tn, org.dom4j.Node node) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)