public class CodeAssess
extends java.lang.Object
| Constructor and Description |
|---|
CodeAssess(codeassess.Assessor assessor,
java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths,
java.lang.String[] solutionPaths)
Creates a CodeAssess that executes the methods of an assessor.
|
CodeAssess(java.lang.String assessorPath,
java.lang.String assessorName,
java.lang.String[] libraries,
java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths,
java.lang.String[] solutionPaths)
Creates a CodeAssess that executes the methods of an assessor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
execute(java.lang.reflect.Method method,
java.lang.Object... args)
Executes a method implemented in the assessor.
|
java.lang.Object |
execute(java.lang.String methodName,
java.lang.Object... args)
Executes a method implemented in the assessor.
|
java.lang.reflect.Method |
getDeclaredMethod(java.lang.String methodName,
java.lang.Class<?>... paramClasses)
Obtains a method implemented in the assessor.
|
java.util.List<java.lang.String> |
getMethods()
Returns the methods that are implemented in the assessor.
|
void |
refresh()
Refresh the CodeAssess in order to access the current classes of the project.
|
public CodeAssess(codeassess.Assessor assessor,
java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths,
java.lang.String[] solutionPaths)
assessor - an assessor that contains the methods that manipulates the classesprojectPaths - the paths in which the classes are foundtestCasesPaths - the paths in which the test cases are foundsolutionPaths - the paths in which the correct classes are foundpublic CodeAssess(java.lang.String assessorPath,
java.lang.String assessorName,
java.lang.String[] libraries,
java.lang.String[] projectPaths,
java.lang.String[] testCasesPaths,
java.lang.String[] solutionPaths)
assessorPath - the path in which the assessor is foundassessorName - the name of the class that extends the assessor classlibraries - the libraries needed to load the assessorprojectPaths - the paths in which the classes are foundtestCasesPaths - the paths in which the test cases are foundsolutionPaths - the paths in which the correct classes are foundpublic java.util.List<java.lang.String> getMethods()
public java.lang.Object execute(java.lang.String methodName,
java.lang.Object... args)
methodName - the name of the method to be executedargs - the arguments that are passed to the methodpublic java.lang.reflect.Method getDeclaredMethod(java.lang.String methodName,
java.lang.Class<?>... paramClasses)
methodName - the name of the method to be obtainedparamClasses - the classes of the parameters of the methodpublic java.lang.Object execute(java.lang.reflect.Method method,
java.lang.Object... args)
method - the method to be executedargs - the arguments that are passed to the methodpublic void refresh()