public class JReFrameworkerAtlasProject
extends java.lang.Object
Constructor and Description |
---|
JReFrameworkerAtlasProject(JReFrameworkerProject project) |
Modifier and Type | Method and Description |
---|---|
void |
addPostExecutionMethodHook(com.ensoftcorp.atlas.core.db.graph.Node method)
Creates logic to inject code after the given method is executed
|
void |
addPostExecutionMethodHooks(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
Creates logic to inject code after the given methods are executed
|
void |
addPostExecutionMethodHooks(com.ensoftcorp.atlas.core.query.Q methods)
Creates logic to inject code after the given methods are executed
|
void |
addPreExecutionMethodHook(com.ensoftcorp.atlas.core.db.graph.Node method)
Creates logic to inject code before the given method is executed
|
void |
addPreExecutionMethodHooks(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
Creates logic to inject code before the given methods are executed
|
void |
addPreExecutionMethodHooks(com.ensoftcorp.atlas.core.query.Q methods)
Creates logic to inject code before the given methods are executed
|
void |
addTarget(java.io.File targetLibrary)
Adds a target from the JReFrameworker project
|
void |
addTarget(java.io.File targetLibrary,
java.lang.String relativeLibraryDirectory)
Adds a target with the given relative library directory
|
void |
defineField(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
Creates logic to define a new field in the given target class
|
void |
defineFields(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
Creates logic to define a new field in the given target classes
|
void |
defineFields(com.ensoftcorp.atlas.core.query.Q targetClasses)
Creates logic to define a new field in the given target classes
|
void |
defineMethod(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
Creates logic to define a new method in the given target class
|
void |
defineMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
Creates logic to define a new method in the given target classes
|
void |
defineMethods(com.ensoftcorp.atlas.core.query.Q targetClasses)
Creates logic to define a new method in the given target classes
|
void |
defineType(java.lang.String sourcePackageName,
java.lang.String sourceClassName)
Creates logic to define a new class
Example: defineType("com.test", "HelloWorld")
|
void |
defineType(java.lang.String sourcePackageName,
java.lang.String sourceClassName,
java.lang.String javadoc)
Creates logic to define a new class with the specified javadoc comment
Example: defineType("com.test", "HelloWorld")
|
JReFrameworkerProject |
getProject()
Returns the Eclipse project resource
|
java.util.Set<java.lang.String> |
listTargets()
Lists the JReFrameworker project targets
|
void |
mergeMethod(com.ensoftcorp.atlas.core.db.graph.Node method)
Creates logic to preserve and replace accessible code in the given method
|
void |
mergeMethod(java.lang.String sourcePackageName,
java.lang.String sourceClassName,
com.ensoftcorp.atlas.core.db.graph.Node targetMethod) |
void |
mergeMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
Creates logic to preserve and replace accessible code in the given methods
|
void |
mergeMethods(com.ensoftcorp.atlas.core.query.Q methods)
Creates logic to preserve and replace accessible code in the given methods
|
void |
mergeType(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
Creates logic to merge code into the given class target
|
void |
mergeType(java.lang.String sourcePackageName,
java.lang.String sourceClassName,
java.lang.String targetClassPackageName,
java.lang.String targetClassName)
Creates logic to merge code into the given class target
Note: Does not consider prebuild options
|
void |
mergeTypes(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
Creates logic to replace a class in the given class targets
|
void |
mergeTypes(com.ensoftcorp.atlas.core.query.Q targetClasses)
Creates logic to replace a class in the given class targets
|
void |
refresh() |
void |
removeTarget(java.lang.String target)
Removes a target from the JReFrameworker project
|
void |
replaceField(com.ensoftcorp.atlas.core.db.graph.Node field)
Creates logic to replace code in the given field
|
void |
replaceFields(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> fields)
Creates logic to replace code in the given fields
|
void |
replaceFields(com.ensoftcorp.atlas.core.query.Q fields)
Creates logic to replace code in the given fields
|
void |
replaceMethod(com.ensoftcorp.atlas.core.db.graph.Node method)
Creates logic to replace code in the given method
|
void |
replaceMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
Creates logic to replace code in the given methods
|
void |
replaceMethods(com.ensoftcorp.atlas.core.query.Q methods)
Creates logic to replace code in the given methods
|
void |
replaceType(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
Creates logic to replace a class in the given class target
|
void |
replaceType(java.lang.String sourcePackageName,
java.lang.String sourceClassName)
Creates logic to replace a class in the given class target
|
void |
replaceTypes(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
Creates logic to replace a class in the given class targets
|
void |
replaceTypes(com.ensoftcorp.atlas.core.query.Q targetClasses)
Creates logic to replace a class in the given class targets
|
void |
setMethodFinality(java.lang.String sourceClassPackageName,
java.lang.String sourceClassName,
java.lang.String targetClassPackageName,
java.lang.String targetClassName,
com.ensoftcorp.atlas.core.db.graph.Node targetMethod,
boolean finality)
Creates a new class with that contains a DefineMethodFinality annotation
set to the type specified by the given sourcePackageName and sourceClassName values
with the given target method overridden and finality set
|
void |
setMethodVisibility(java.lang.String sourceClassPackageName,
java.lang.String sourceClassName,
java.lang.String targetClassPackageName,
java.lang.String targetClassName,
com.ensoftcorp.atlas.core.db.graph.Node targetMethod,
java.lang.String visibility)
Creates a new class with that contains a DefineMethodVisibility annotation
set to the type specified by the given sourcePackageName and sourceClassName values
with the given target method overridden and visibility set
|
void |
setTypeFinality(java.lang.String sourcePackageName,
java.lang.String sourceClassName,
java.lang.String targetClassPackageName,
java.lang.String targetClassName,
boolean finality)
Creates a new class with that contains a DefineTypeFinality annotation
set to the type specified by the given sourcePackageName and sourceClassName values
with the given finality
|
void |
setTypeVisibility(java.lang.String sourcePackageName,
java.lang.String sourceClassName,
java.lang.String targetClassPackageName,
java.lang.String targetClassName,
java.lang.String visibility)
Creates a new class with that contains a DefineTypeVisibility annotation
set to the type specified by the given sourcePackageName and sourceClassName values
with the given finality
|
public JReFrameworkerAtlasProject(JReFrameworkerProject project)
public JReFrameworkerProject getProject()
public void refresh() throws org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
public java.util.Set<java.lang.String> listTargets() throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public void addTarget(java.io.File targetLibrary) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.net.URISyntaxException, org.eclipse.core.runtime.CoreException
org.eclipse.core.runtime.CoreException
java.net.URISyntaxException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public void addTarget(java.io.File targetLibrary, java.lang.String relativeLibraryDirectory) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException, java.net.URISyntaxException, org.eclipse.core.runtime.CoreException
targetLibrary
- relativeLibraryDirectory
- javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
java.net.URISyntaxException
org.eclipse.core.runtime.CoreException
public void removeTarget(java.lang.String target) throws javax.xml.transform.TransformerException, javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException, java.io.IOException
javax.xml.transform.TransformerException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
java.io.IOException
public void defineType(java.lang.String sourcePackageName, java.lang.String sourceClassName, java.lang.String javadoc)
sourcePackageName
- sourceClassName
- java.io.IOException
org.eclipse.core.runtime.CoreException
public void defineType(java.lang.String sourcePackageName, java.lang.String sourceClassName)
packageName
- sourceClassName
- java.io.IOException
org.eclipse.core.runtime.CoreException
public void replaceType(java.lang.String sourcePackageName, java.lang.String sourceClassName)
targetClass
- public void replaceTypes(com.ensoftcorp.atlas.core.query.Q targetClasses)
targetClass
- public void replaceTypes(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
targetClass
- public void replaceType(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
targetClass
- public void setTypeFinality(java.lang.String sourcePackageName, java.lang.String sourceClassName, java.lang.String targetClassPackageName, java.lang.String targetClassName, boolean finality)
sourcePackageName
- sourceClassName
- finality
- public void setTypeVisibility(java.lang.String sourcePackageName, java.lang.String sourceClassName, java.lang.String targetClassPackageName, java.lang.String targetClassName, java.lang.String visibility)
sourcePackageName
- sourceClassName
- finality
- public void setMethodFinality(java.lang.String sourceClassPackageName, java.lang.String sourceClassName, java.lang.String targetClassPackageName, java.lang.String targetClassName, com.ensoftcorp.atlas.core.db.graph.Node targetMethod, boolean finality)
sourceClassPackageName
- sourceClassName
- targetClassPackageName
- targetClassName
- targetClassName
- finality
- public void setMethodVisibility(java.lang.String sourceClassPackageName, java.lang.String sourceClassName, java.lang.String targetClassPackageName, java.lang.String targetClassName, com.ensoftcorp.atlas.core.db.graph.Node targetMethod, java.lang.String visibility)
sourceClassPackageName
- sourceClassName
- targetClassPackageName
- targetClassName
- targetClassName
- visibility
- public void mergeType(java.lang.String sourcePackageName, java.lang.String sourceClassName, java.lang.String targetClassPackageName, java.lang.String targetClassName)
targetClass
- public void mergeType(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
targetClass
- public void mergeTypes(com.ensoftcorp.atlas.core.query.Q targetClasses)
targetClass
- public void mergeTypes(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
targetClass
- public void defineFields(com.ensoftcorp.atlas.core.query.Q targetClasses)
fields
- public void defineFields(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
field
- public void defineField(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
field
- public void replaceFields(com.ensoftcorp.atlas.core.query.Q fields)
fields
- public void replaceFields(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> fields)
fields
- public void replaceField(com.ensoftcorp.atlas.core.db.graph.Node field)
field
- public void defineMethods(com.ensoftcorp.atlas.core.query.Q targetClasses)
methods
- public void defineMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> targetClasses)
method
- public void defineMethod(com.ensoftcorp.atlas.core.db.graph.Node targetClass)
method
- public void replaceMethods(com.ensoftcorp.atlas.core.query.Q methods)
methods
- public void replaceMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
methods
- public void replaceMethod(com.ensoftcorp.atlas.core.db.graph.Node method)
method
- public void mergeMethod(java.lang.String sourcePackageName, java.lang.String sourceClassName, com.ensoftcorp.atlas.core.db.graph.Node targetMethod)
public void mergeMethods(com.ensoftcorp.atlas.core.query.Q methods)
methods
- public void mergeMethods(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
method
- public void mergeMethod(com.ensoftcorp.atlas.core.db.graph.Node method)
method
- public void addPreExecutionMethodHooks(com.ensoftcorp.atlas.core.query.Q methods)
method
- public void addPreExecutionMethodHooks(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
method
- public void addPreExecutionMethodHook(com.ensoftcorp.atlas.core.db.graph.Node method)
method
- public void addPostExecutionMethodHooks(com.ensoftcorp.atlas.core.query.Q methods)
method
- public void addPostExecutionMethodHooks(com.ensoftcorp.atlas.core.db.set.AtlasSet<com.ensoftcorp.atlas.core.db.graph.Node> methods)
method
- public void addPostExecutionMethodHook(com.ensoftcorp.atlas.core.db.graph.Node method)
method
-