Class AbstractContentAssistVisitor.MappingTypeFilter

  • All Implemented Interfaces:
    Filter<IMapping>
    Enclosing class:
    AbstractContentAssistVisitor

    protected static final class AbstractContentAssistVisitor.MappingTypeFilter
    extends java.lang.Object
    implements Filter<IMapping>
    This Filter is responsible to filter out the mappings that can't have their type assignable to the one passed in.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected IType type
      The type used to determine if the mapping's type is a valid type.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(IMapping value)
      Determines whether the specified object is "accepted" by the filter.
      • Methods inherited from class java.lang.Object

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

      • type

        protected final IType type
        The type used to determine if the mapping's type is a valid type.
    • Method Detail

      • accept

        public boolean accept​(IMapping value)
        Determines whether the specified object is "accepted" by the filter. The semantics of "accept" is determined by the contract between the client and the server.
        Specified by:
        accept in interface Filter<IMapping>
        Parameters:
        value - The value to filter
        Returns:
        true if the given value is "accepted" by this filter; false if it was "rejected"