Class CustomOccurrenceComputer.CustomAcceptor<T>

  • Type Parameters:
    T - type of the element containing in acceptor
    All Implemented Interfaces:
    Enclosing class:

    protected abstract class CustomOccurrenceComputer.CustomAcceptor<T>
    extends Object
    implements org.eclipse.xtext.findReferences.IReferenceFinder.Acceptor
    Custom implementation of IReferenceFinder.Acceptor.
    This implementation has special methods for getting all elements in acceptor
    • Field Detail

      • allElements

        protected List<T> allElements
    • Constructor Detail

      • CustomAcceptor

        public CustomAcceptor()
        Default Constructor. Initialize allElements by empty list
    • Method Detail

      • getAllElements

        public List<T> getAllElements()
        Gets all elements in acceptor
        list of all elements in acceptor, never null
      • size

        public int size()
        Returns the number of elements in acceptor
        the number of elements in acceptor
      • isEmpty

        public boolean isEmpty()
        Returns true if this acceptor contains no elements
        true if this acceptor contains no elements