Package org.eclipse.epsilon.emc.jdt
Class SearchableTypeCollection
- java.lang.Object
-
- java.util.AbstractCollection<Object>
-
- org.eclipse.epsilon.emc.jdt.SearchableTypeCollection
-
- All Implemented Interfaces:
Iterable<Object>
,Collection<Object>
,IAbstractOperationContributor
public class SearchableTypeCollection extends AbstractCollection<Object> implements IAbstractOperationContributor
Variant ofTypeDeclaration.all
that integrates case sensitive pattern matching into its.select(td|pattern='...')
method.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.jdt.core.IJavaProject[]
javaProjects
protected ReflectiveASTVisitor
visitor
The visitor is only used if the script tries to iterate through the entire TypeDeclaration.all list.
-
Constructor Summary
Constructors Constructor Description SearchableTypeCollection(org.eclipse.jdt.core.IJavaProject[] javaProjects, ReflectiveASTVisitor visitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractOperation
getAbstractOperation(String name)
protected boolean
isSearchByName(String iteratorName, Expression condition)
Iterator<Object>
iterator()
protected Object
performSearch(IEolContext context, Expression nameExpression, List<Object> results, org.eclipse.jdt.core.search.SearchRequestor requestor)
int
size()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Field Detail
-
javaProjects
protected org.eclipse.jdt.core.IJavaProject[] javaProjects
-
visitor
protected ReflectiveASTVisitor visitor
The visitor is only used if the script tries to iterate through the entire TypeDeclaration.all list.
-
-
Constructor Detail
-
SearchableTypeCollection
public SearchableTypeCollection(org.eclipse.jdt.core.IJavaProject[] javaProjects, ReflectiveASTVisitor visitor)
-
-
Method Detail
-
isSearchByName
protected boolean isSearchByName(String iteratorName, Expression condition)
-
performSearch
protected Object performSearch(IEolContext context, Expression nameExpression, List<Object> results, org.eclipse.jdt.core.search.SearchRequestor requestor) throws EolRuntimeException
- Throws:
EolRuntimeException
-
getAbstractOperation
public AbstractOperation getAbstractOperation(String name)
- Specified by:
getAbstractOperation
in interfaceIAbstractOperationContributor
-
iterator
public Iterator<Object> iterator()
- Specified by:
iterator
in interfaceCollection<Object>
- Specified by:
iterator
in interfaceIterable<Object>
- Specified by:
iterator
in classAbstractCollection<Object>
-
size
public int size()
- Specified by:
size
in interfaceCollection<Object>
- Specified by:
size
in classAbstractCollection<Object>
-
-