|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.binding.Compile
public class Compile
Binding compiler. This version checks the modified and generated classes by loading them and listing method information.
Nested Class Summary | |
---|---|
private static class |
Compile.DirectLoader
Direct class loader. |
Field Summary | |
---|---|
private boolean |
m_errorOverride
|
private boolean |
m_load
|
private boolean |
m_skipValidate
|
private boolean |
m_trackBranches
|
private boolean |
m_verbose
|
private boolean |
m_verify
|
Constructor Summary | |
---|---|
Compile()
Default constructor. |
|
Compile(boolean verbose,
boolean load,
boolean verify,
boolean track,
boolean over)
Constructor with settings specified. |
Method Summary | |
---|---|
void |
compile(java.lang.String[] paths,
java.lang.String[] files)
Compile a set of bindings using supplied classpaths. |
private void |
handleOutput(java.lang.String[] paths)
Output all generated and modified class files. |
static void |
main(java.lang.String[] args)
Main method for running compiler as application. |
void |
setLoad(boolean load)
Set control flag for test loading generated/modified classes. |
void |
setSkipValidate(boolean skip)
Set control flag for skipping binding validation. |
void |
setVerbose(boolean verbose)
Set control flag for verbose processing reports. |
void |
setVerify(boolean verify)
Set control flag for verifying generated/modified classes with BCEL. |
private boolean |
verifyBCEL(ClassFile file)
Verify generated and modified files using BCEL verifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private boolean m_verbose
private boolean m_load
private boolean m_verify
private boolean m_trackBranches
private boolean m_errorOverride
private boolean m_skipValidate
Constructor Detail |
---|
public Compile()
public Compile(boolean verbose, boolean load, boolean verify, boolean track, boolean over)
verbose
- report binding details and resultsload
- test load modified classes to validateverify
- use BCEL validation of modified classestrack
- keep tracking information for source of branch generationover
- override code generation error handlingMethod Detail |
---|
private boolean verifyBCEL(ClassFile file)
file
- information for class to be verified
true
if successfully verified, false
if
problem found (automatically reported)private void handleOutput(java.lang.String[] paths) throws JiBXException, java.io.IOException
paths
- array of paths used for loading files
JiBXException
- if error in processing the binding definition
java.io.IOException
- if path cannot be accessedpublic void setLoad(boolean load)
load
- test load generated/modified classes flagpublic void setVerbose(boolean verbose)
verbose
- report verbose information in processing bindings flagpublic void setVerify(boolean verify)
verify
- use BCEL verification for generated/modified classes flagpublic void setSkipValidate(boolean skip)
skip
- test load generated/modified classes flagpublic void compile(java.lang.String[] paths, java.lang.String[] files) throws JiBXException
paths
- list of paths for loading classesfiles
- list of binding definition files
JiBXException
- if error in processing the binding definitionpublic static void main(java.lang.String[] args)
args
- command line arguments
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |