Class OverrideAbstractSupport
java.lang.Object
ca.mcscert.jpipe.commands.linking.OverrideAbstractSupport
- All Implemented Interfaces:
Command, MacroCommand
Replaces an
AbstractSupport placeholder (inlined from a template)
with a concrete element. Expands into three atomic commands:
RemoveElement, AddElement, RewireStrategySupport.
The condition defers execution until the abstract support is present in the
model (i.e., after ImplementsTemplate has run).
-
Constructor Summary
ConstructorsConstructorDescriptionOverrideAbstractSupport(String container, String qualifiedId, String newType, String label) OverrideAbstractSupport(String container, String qualifiedId, String newType, String label, SourceLocation location) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface MacroCommand
execute
-
Constructor Details
-
OverrideAbstractSupport
-
OverrideAbstractSupport
public OverrideAbstractSupport(String container, String qualifiedId, String newType, String label, SourceLocation location)
-
-
Method Details
-
container
-
qualifiedId
-
newType
-
label
-
location
-
condition
-
expand
Description copied from interface:MacroCommandExpands this macro into a sequence of atomic commands to be executed in order.- Specified by:
expandin interfaceMacroCommand- Parameters:
unit- the current unit, available to inspect model state.- Returns:
- the list of commands to splice into the execution queue.
-
toString
-