Class TransformationParameterInformation


  • public final class TransformationParameterInformation
    extends Object
    Convenience class to store required information (type, kind, index and name) about parameters of a QVTo transformation
    See Also:
    TransformationData
    • Constructor Detail

      • TransformationParameterInformation

        public TransformationParameterInformation​(EPackage paramType,
                                                  org.eclipse.m2m.internal.qvt.oml.expressions.DirectionKind paramDirectionKind,
                                                  int paramIndex,
                                                  String paramName)
    • Method Detail

      • getParameterType

        public EPackage getParameterType()
        Gets the type of the parameter, i.e., its corresponding meta-model package.
        Returns:
        The EPackage which denotes the type of the transformation parameter.
      • isOutParameter

        public boolean isOutParameter()
        Indicates whether the parameter is marked with the 'out' keyword, i.e, has implicit return type semantics.
        Returns:
        true in case the parameter is an 'out' parameter, false otherwise.
      • getParameterIndex

        public int getParameterIndex()
        Gets the index of the parameter in the corresponding QVTo transformation.
        Note, that the first parameter has index 0 and so forth.
        Returns:
        The index of the parameter, expressed by a nonnegative integer.
      • getParameterName

        public String getParameterName()
        Gets the name of the parameter.
        Returns:
        A String that contains the parameter's name.