Class DisableAllRule

    • Constructor Detail

      • DisableAllRule

        public DisableAllRule​(Supplier<Iterable<IDefinition>> definitionSupplier)
        Creates a new rule.
        Parameters:
        definitionSupplier - the supplier of the definitions, cannot be null.
    • Method Detail

      • buildSingleObject

        protected void buildSingleObject​(org.eclipse.emf.ecore.EObject object,
                                         IV8Project v8project)
        Description copied from class: AbstractRule
        Builds statements for each of selected object.
        Specified by:
        buildSingleObject in class AbstractRule
        Parameters:
        object - the object.
        v8project - the V8 project for object.
      • disableAll

        protected void disableAll()
        Disables all components that corresponds to the definitions provided by rule definition supplier.