Class JoinVariableDeclaration

    • Field Detail

      • exclude

        private boolean exclude
    • Constructor Detail

      • JoinVariableDeclaration

        public JoinVariableDeclaration​(java.lang.String name,
                                       Expression expr,
                                       boolean exclude)
                                throws VilException
        Creates a new variable declaration.
        Parameters:
        name - the name of the variable
        expr - the initializing expression (must be given)
        exclude - if this join variable shall be excluded from the join result
        Throws:
        VilException - in case of structural or semantic errors
    • Method Detail

      • getJoinVariableType

        private static TypeDescriptor<?> getJoinVariableType​(Expression expr)
                                                      throws VilException
        Determine the type of the join variable from the initializing expression.
        Parameters:
        expr - the expression used for the initialization
        Returns:
        the actual type of the join variable
        Throws:
        VilException - in case that expr is not a collection or does not have exactly one parameter
      • isExcluded

        public boolean isExcluded()
        Returns whether this variable shall be excluded from the join result.
        Returns:
        true if it shall be excluded, false else