Interface IExpressionTypeState

    • Method Detail

      • hasTypes

        boolean hasTypes()
        Checks that state has assosiated types
        Returns:
        true if there are assosiated types in state, false otherwise
      • addType

        void addType​(TypeItem type)
        Add type to state
        Parameters:
        type - adding TypeItem, can't be null
      • addTypes

        void addTypes​(Collection<? extends TypeItem> types)
        Add types to state
        Parameters:
        types - adding TypeItems, can't be null
      • setTypes

        void setTypes​(Collection<? extends TypeItem> types)
        Sets types to state. Method clears containing types before sets new
        Parameters:
        types - setting TypeItems, cannot be null
      • getTypesSize

        int getTypesSize()
        Gets type's list size
        Returns:
        count of types in VariableTypeState
      • getParentState

        IExpressionTypeState getParentState()
        Gets state that was before current state
        Returns:
        parent state
      • addChildState

        void addChildState​(IExpressionTypeState childState)
        Add new child state.
        Remarks that current state will be parent state for childState
        Parameters:
        childState - new child