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
      • addExpressionRelatedTypes

        void addExpressionRelatedTypes​(Expression baseExpression,
                                       Collection<? extends TypeItem> types)
        Adds types to state. Method removes old types related to baseExpression and add new related types
        Parameters:
        baseExpression - Expression which provides adding types, cannot be null
        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