Class MatMethod
java.lang.Object
org.proforma.variability.transfer.MatMethod
A MatMethod applies some operation to data supplied by a MatArtifact; the result of the operation is passed to the MatArtifact's consumption feature.
A MatMethod gets its data from two sources. First, the artifact supplies a value to the method. Second the variation point resolution supplies some variation point values. The MatMethod may decide, to restrict its attention to a specified subset of all variation points. By default all variation points are passed to the method.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic MatMethod
arithmeticOperation
(String id, List<String> restrictVp, MatMethodOperator operator) clone()
<T> T
findAnyByInstanceOfClass
(Class<T> clazz) getAny()
Class<?>
getId()
includeAny
(Object... anys) void
static MatMethod
static MatMethod
void
setOperator
(MatMethodOperator operator) void
setProvider
(MatMethodProvider<?> provider) static MatMethod
setVpValue
(String id, List<String> restrictVp) toString()
-
Field Details
-
any
-
-
Constructor Details
-
MatMethod
public MatMethod() -
MatMethod
-
MatMethod
-
-
Method Details
-
mustache
-
setVpValue
-
arithmeticOperation
public static MatMethod arithmeticOperation(String id, List<String> restrictVp, MatMethodOperator operator) -
other
-
clone
-
getId
-
setId
-
getMethodType
-
getRestrictVp
-
getPrefix
-
setPrefix
-
getSuffix
-
setSuffix
-
getOperator
-
setOperator
-
getAny
-
includeAny
-
findAnyByInstanceOfClass
-
getGenericType
-
getProvider
-
setProvider
-
toString
-
init
-