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