| |
|
| java.lang.Object spoon.reflect.visitor.CtScanner spoon.reflect.visitor.ModelConsistencyChecker
ModelConsistencyChecker | public class ModelConsistencyChecker extends CtScanner (Code) | | This scanner checks that a program model is consistent whith regards to the
parent elements (children must have the right parent). This class can be used
to validate that a program transformation does not harm the model integrity,
and also to automatically fix it when possible.
|
fixInconsistencies | boolean fixInconsistencies(Code) | | |
ModelConsistencyChecker | public ModelConsistencyChecker(Environment environment, boolean fixInconsistencies)(Code) | | Creates a new model consistency checker.
Parameters: environment - the environment where to report errors Parameters: fixInconsistencies - automatically fix the inconsitencies rather than reportingwarnings (to report warnings, set this to false) |
|
|
|