|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.joanju.cg.core.UpdateEngine
public class UpdateEngine
Constructor Summary | |
---|---|
UpdateEngine()
|
Method Summary | |
---|---|
int |
build(ParseUnit parseUnit)
Build/refresh the database for a ParseUnit. |
void |
buildOrRefresh(java.lang.String projectName,
java.util.Collection<java.io.File> compileUnitSourceFiles)
|
int |
buildOrRefresh(java.lang.String projectName,
java.io.File compileUnitSourceFile)
Build or refresh the database for a given compile unit's source file. |
boolean |
needsUpdate(ParseUnit pu)
Check the timestamp and layout version of the Bytecode against the PUB file for the input ParseUnit. |
void |
setPrecommitCallback(ICallback precommitCallback)
Set the callback for mid-build processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UpdateEngine() throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
Method Detail |
---|
public int build(ParseUnit parseUnit) throws java.sql.SQLException, java.io.IOException
java.sql.SQLException
java.io.IOException
public int buildOrRefresh(java.lang.String projectName, java.io.File compileUnitSourceFile) throws java.lang.Exception
This is a convenience method, called from the API and from unit tests. It wraps the loading of the ProRefactor project, build or load the PUB, calling build(ParseUnit), and running Checkvals.
An appropriate project name (as configured in Eclipse) must be input. For example, you might use org.eclipse.core.resources.IResource.getProject().getName() to find the currently selected project name.
ProRefactor's project settings - especially PROPATH and schema names - must be configured.
java.lang.Exception
public void buildOrRefresh(java.lang.String projectName, java.util.Collection<java.io.File> compileUnitSourceFiles) throws java.lang.Exception
java.lang.Exception
buildOrRefresh(String, File)
public boolean needsUpdate(ParseUnit pu) throws java.io.IOException, java.sql.SQLException
java.io.IOException
java.sql.SQLException
public void setPrecommitCallback(ICallback precommitCallback)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |