com.dtrules.compiler.decisiontables
Class DTCompiler
java.lang.Object
com.dtrules.compiler.decisiontables.DTCompiler
- All Implemented Interfaces:
- IGenericXMLParser
public class DTCompiler
- extends Object
- implements IGenericXMLParser
|
Constructor Summary |
DTCompiler(ICompiler compiler)
Compiles the XML stream, writing the "compiled" XML to result. |
|
Method Summary |
void |
beginTag(String[] tagstk,
int tagstkptr,
String tag,
HashMap<String,String> attribs)
|
void |
compile(InputStream in,
OutputStream out)
|
void |
compile(String decisionTable,
String resultDecisionTable)
|
void |
endTag(String[] tagstk,
int tagstkptr,
String tag,
String body,
HashMap<String,String> attribs)
|
boolean |
error(String v)
|
ArrayList<Changed> |
getChanges()
|
ArrayList<CompileError> |
getErrors()
|
void |
logError(String decisionTableName,
String filename,
String source,
String message,
int line,
String info)
|
void |
printChanges(PrintStream eOut)
|
void |
printErrors(PrintStream eOut)
|
void |
printErrors(PrintStream eOut,
int count)
|
void |
printTypes(PrintStream eOut)
|
void |
printUnreferenced(PrintStream eOut)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DTCompiler
public DTCompiler(ICompiler compiler)
- Compiles the XML stream, writing the "compiled" XML to result.
Note that it is the caller's responsiblity to ask the compiler
for a list of errors and to report these errors....
- Parameters:
source - InputStreamresult - OutputStream
getErrors
public ArrayList<CompileError> getErrors()
getChanges
public ArrayList<Changed> getChanges()
beginTag
public void beginTag(String[] tagstk,
int tagstkptr,
String tag,
HashMap<String,String> attribs)
throws IOException,
Exception
- Specified by:
beginTag in interface IGenericXMLParser
- Throws:
IOException
Exception
logError
public void logError(String decisionTableName,
String filename,
String source,
String message,
int line,
String info)
endTag
public void endTag(String[] tagstk,
int tagstkptr,
String tag,
String body,
HashMap<String,String> attribs)
throws Exception,
IOException
- Specified by:
endTag in interface IGenericXMLParser
- Throws:
Exception
IOException
error
public boolean error(String v)
throws Exception
- Specified by:
error in interface IGenericXMLParser
- Throws:
Exception
compile
public void compile(String decisionTable,
String resultDecisionTable)
compile
public void compile(InputStream in,
OutputStream out)
printErrors
public void printErrors(PrintStream eOut)
printTypes
public void printTypes(PrintStream eOut)
printErrors
public void printErrors(PrintStream eOut,
int count)
printUnreferenced
public void printUnreferenced(PrintStream eOut)
printChanges
public void printChanges(PrintStream eOut)
Copyright © 2011 DTrules Inc. All Rights Reserved.