Class CustomOccurrenceComputer.CustomAcceptor<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.lcore.ui.editor.occurrences.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 ofIReferenceFinder.Acceptor
.
This implementation has special methods for getting all elements in acceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected List<T>
allElements
-
Constructor Summary
Constructors Constructor Description CustomAcceptor()
Default Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<T>
getAllElements()
Gets all elements in acceptorboolean
isEmpty()
Returnstrue
if this acceptor contains no elementsint
size()
Returns the number of elements in acceptor
-
-
-
Constructor Detail
-
CustomAcceptor
public CustomAcceptor()
Default Constructor. InitializeallElements
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()
Returnstrue
if this acceptor contains no elements- Returns:
true
if this acceptor contains no elements
-
-