Class ConcatExpressionStateObject

    • Field Detail

      • STRING_PRIMARY_STATE_OBJECT_LIST

        public static final java.lang.String STRING_PRIMARY_STATE_OBJECT_LIST
        Notifies the content of the list of StateObject representing the string primaries has changed.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConcatExpressionStateObject

        public ConcatExpressionStateObject​(StateObject parent)
        Creates a new ConcatExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
      • ConcatExpressionStateObject

        public ConcatExpressionStateObject​(StateObject parent,
                                           java.util.List<? extends StateObject> stateObjects)
        Creates a new ConcatExpressionStateObject.
        Parameters:
        stateObjects - The list of StateObject representing the encapsulated expressions
      • ConcatExpressionStateObject

        public ConcatExpressionStateObject​(StateObject parent,
                                           StateObject... stateObjects)
        Creates a new ConcatExpressionStateObject.
        Parameters:
        parent - The parent of this state object, which cannot be null
        stateObjects - The list of StateObject representing the encapsulated expressions
        Throws:
        java.lang.NullPointerException - The given parent cannot be null
    • Method Detail

      • setExpression

        public void setExpression​(ConcatExpression expression)
        Keeps a reference of the parsed object object, which should only be done when this object is instantiated during the conversion of a parsed JPQL query into StateObjects.
        Parameters:
        expression - The parsed object representing a CONCAT expression
      • toTextInternal

        protected void toTextInternal​(java.lang.Appendable writer)
                               throws java.io.IOException
        Prints out a string representation of this StateObject, which should not be used to define a true string representation of a JPQL query but should be used for debugging purposes.
        Specified by:
        toTextInternal in class AbstractStateObject
        Parameters:
        writer - The writer used to print out the string representation
        Throws:
        java.io.IOException - This should never happens, it is only required because Appendable is used instead of any concrete class