Class CustomOccurrenceComputer.CustomAcceptor<T>

  • Type Parameters:
    T - type of the element containing in acceptor
    All Implemented Interfaces:
    org.eclipse.xtext.findReferences.IReferenceFinder.Acceptor
    Enclosing class:
    CustomOccurrenceComputer

    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
        Returns:
        list of all elements in acceptor, never null
      • size

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

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