Class SingleValueApplierRule<S,T,OS,OT>
- java.lang.Object
-
- org.palladiosimulator.textual.commons.generator.rules.impl.SingleValueApplierRule<S,T,OS,OT>
-
- All Implemented Interfaces:
ValueApplierRule<T,OT>
public class SingleValueApplierRule<S,T,OS,OT> extends Object implements ValueApplierRule<T,OT>
-
-
Constructor Summary
Constructors Constructor Description SingleValueApplierRule(Function<OS,S> setterOnTarget, Class<T> target, Registration<OS,OT> regi)
SingleValueApplierRule(Function<OS,S> setterOnTarget, Registration<OS,OT> regi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
thenSet(BiConsumer<OT,T> apply)
Define how to set the transformed element(s) on the target object.
-
-
-
Method Detail
-
thenSet
public void thenSet(BiConsumer<OT,T> apply)
Description copied from interface:ValueApplierRule
Define how to set the transformed element(s) on the target object. This gets the target element, on which these should be set, as a first parameter and the object(s) to set as the second.- Specified by:
thenSet
in interfaceValueApplierRule<S,T>
-
-