Class ExpressionExporter


  • @OpenApiAll
    public class ExpressionExporter
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getExpressionLanguage​(Comment elementValueSpecification)
      Returns name of the expression language used to define the expression of the given element value specification
      static java.lang.String getExpressionLanguage​(Constraint variationPoint)
      Returns name of the expression language used to define the expression of the given variation point
      static java.lang.String getExpressionString​(Comment elementValueSpecification)
      Returns string representation of an expression used to evaluate any element with this variation point
      static java.lang.String getExpressionString​(Constraint variationPoint)
      Returns string representation of an expression used to evaluate any element with this variation point
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IMPLICIT_LANGUAGE_NAME

        public static final java.lang.String IMPLICIT_LANGUAGE_NAME
        See Also:
        Constant Field Values
    • Constructor Detail

      • ExpressionExporter

        public ExpressionExporter()
    • Method Detail

      • getExpressionString

        public static java.lang.String getExpressionString​(Constraint variationPoint)
        Returns string representation of an expression used to evaluate any element with this variation point
        Parameters:
        variationPoint - variation point element
        Returns:
        readable expression string of this variation point. If expression is not explicitly typed in, the string is implicitly synthesized by the connected feature impacts. Empty string is returned if there is no expression and feature impacts, or the provided element is not a variation point.
      • getExpressionString

        public static java.lang.String getExpressionString​(Comment elementValueSpecification)
        Returns string representation of an expression used to evaluate any element with this variation point
        Parameters:
        elementValueSpecification - element value specification owned by some variation point
        Returns:
        readable expression string of the given element value specification If expression is not explicitly typed in, the string is implicitly synthesized by the connected feature impact Empty string is returned if there is no expression and feature impacts, or the provided element is not a variation point.
      • getExpressionLanguage

        public static java.lang.String getExpressionLanguage​(Constraint variationPoint)
        Returns name of the expression language used to define the expression of the given variation point
        Parameters:
        variationPoint - variation point element
        Returns:
        language of the expression of the provided variation point. If expression is not explicitly typed in, then IMPLICIT_LANGUAGE_NAME is returned.
      • getExpressionLanguage

        public static java.lang.String getExpressionLanguage​(Comment elementValueSpecification)
        Returns name of the expression language used to define the expression of the given element value specification
        Parameters:
        elementValueSpecification - element value specification of an element property/tag variation point
        Returns:
        language of the expression of the provided value specification. If expression is not explicitly typed in, then IMPLICIT_LANGUAGE_NAME is returned.