Class VariableValueCopier.CopySpec
java.lang.Object
net.ssehub.easy.varModel.cstEvaluation.VariableValueCopier.CopySpec
- Enclosing class:
VariableValueCopier
Defines a copy specification.
- Author:
- Holger Eichelberger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
-
sourceVariableName
-
freezeProvider
-
targetVariableNames
-
-
Constructor Details
-
CopySpec
Creates a copy specification.- Parameters:
type- the source type (may be null then the spec is ignored)sourceVariableName- the source variable name, may be given in compound access style for nested variables (may be null then the spec is ignored)targetVariableNames- the target variable names, may be given in compound access style for nested variables; the first one receives the copy, the other one references to the copy if they are reference variables (may be null then the spec is ignored)
-
CopySpec
public CopySpec(Compound type, String sourceVariableName, VariableValueCopier.IFreezeProvider freezeProvider, String... targetVariableNames) Creates a copy specification.- Parameters:
type- the source type (may be null then the spec is ignored)sourceVariableName- the source variable name, may be given in compound access style for nested variables (may be null then the spec is ignored)freezeProvider- describes how new variables shall be frozen (may be null for no freezing)targetVariableNames- the target variable names, may be given in compound access style for nested variables; the first one receives the copy, the other one references to the copy if they are reference variables (may be null then the spec is ignored)
-
-
Method Details
-
getType
Returns the source type.- Returns:
- the source type
-
getSourceVariableName
Returns the source variable name.- Returns:
- the source variable name, may be given in compound access style for nested variables
-
getFreezeProvider
The freeze provider.- Returns:
- the freeze provider, may be null for no freezing
-
getTargetVariableNames
Returns the target variable names.- Returns:
- the target variable names, may be given in compound access style for nested variables
-
isValid
public boolean isValid()Returns whether this instance is valid.- Returns:
truefor valid,falseelse
-