Class ConstantOperand
- java.lang.Object
-
- it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
-
- it.bancaditalia.oss.vtl.impl.transform.ConstantOperand
-
- All Implemented Interfaces:
LeafTransformation
,Transformation
,Serializable
public class ConstantOperand extends TransformationImpl implements LeafTransformation
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConstantOperand(ScalarValue<?,?,?,?> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Lineage
computeLineage()
boolean
equals(Object obj)
ScalarValue<?,?,?,?>
eval(TransformationScheme session)
Evaluates this transformation in the context of the givenTransformationScheme
.ScalarValueMetadata<?,?>
getMetadata(TransformationScheme scheme)
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.Set<LeafTransformation>
getTerminals()
A set of all theLeafTransformation
s recursively referenced by thisTransformation
.String
getText()
int
hashCode()
String
toString()
-
Methods inherited from class it.bancaditalia.oss.vtl.impl.transform.TransformationImpl
getLineage
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface it.bancaditalia.oss.vtl.model.transform.LeafTransformation
isTerminal
-
Methods inherited from interface it.bancaditalia.oss.vtl.model.transform.Transformation
getLineage
-
-
-
-
Constructor Detail
-
ConstantOperand
public ConstantOperand(ScalarValue<?,?,?,?> value)
-
-
Method Detail
-
eval
public ScalarValue<?,?,?,?> eval(TransformationScheme session)
Description copied from interface:Transformation
Evaluates this transformation in the context of the givenTransformationScheme
.- Specified by:
eval
in interfaceTransformation
- Parameters:
session
- the transformation scheme- Returns:
- the result of the computation of this
Transformation
.
-
getText
public String getText()
- Specified by:
getText
in interfaceLeafTransformation
-
getTerminals
public Set<LeafTransformation> getTerminals()
Description copied from interface:Transformation
A set of all theLeafTransformation
s recursively referenced by thisTransformation
. The set is empty ifTransformation.isTerminal()
is true.- Specified by:
getTerminals
in interfaceLeafTransformation
- Specified by:
getTerminals
in interfaceTransformation
- Returns:
- the set
-
getMetadata
public ScalarValueMetadata<?,?> getMetadata(TransformationScheme scheme)
Description copied from interface:Transformation
Checks and returns the metadata of thisTransformation
within the givenTransformationScheme
.- Specified by:
getMetadata
in interfaceTransformation
- Parameters:
scheme
- the transformation scheme- Returns:
- the metadata of this
Transformation
.
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceTransformation
- Specified by:
hashCode
in classTransformationImpl
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfaceTransformation
- Specified by:
equals
in classTransformationImpl
-
computeLineage
public Lineage computeLineage()
- Specified by:
computeLineage
in classTransformationImpl
-
-