| java.lang.Object org.eclipse.jdt.internal.core.SearchableEnvironment
All known Subclasses: org.eclipse.jdt.internal.core.CancelableNameEnvironment,
SearchableEnvironment | public class SearchableEnvironment implements INameEnvironment,IJavaSearchConstants(Code) | | This class provides a SearchableBuilderEnvironment for code assist which
uses the Java model as a search tool.
|
Method Summary | |
public void | cleanup() | protected NameEnvironmentAnswer | find(String typeName, String packageName) Returns the given type in the the given package if it exists,
otherwise null . | public void | findExactTypes(char[] name, boolean findMembers, int searchFor, ISearchRequestor storage) Find the top-level types that are defined
in the current environment and whose simple name matches the given name.
The types found are passed to one of the following methods (if additional
information is known about the types):
ISearchRequestor.acceptType(char[][] packageName, char[] typeName)
ISearchRequestor.acceptClass(char[][] packageName, char[] typeName, int modifiers)
ISearchRequestor.acceptInterface(char[][] packageName, char[] typeName, int modifiers)
This method can not be used to find member types... | public void | findPackages(char[] prefix, ISearchRequestor requestor) Find the packages that start with the given prefix.
A valid prefix is a qualified name separated by periods
(ex. | public NameEnvironmentAnswer | findType(char[][] compoundTypeName) | public NameEnvironmentAnswer | findType(char[] name, char[][] packageName) | public void | findTypes(char[] prefix, boolean findMembers, boolean camelCaseMatch, int searchFor, ISearchRequestor storage) Find the top-level types that are defined
in the current environment and whose name starts with the
given prefix. | public boolean | isPackage(char[][] parentPackageName, char[] subPackageName) | protected String | toStringChar(char[] name) Returns a printable string for the array. | protected String | toStringCharChar(char[][] names) Returns a printable string for the array. |
checkAccessRestrictions | protected boolean checkAccessRestrictions(Code) | | |
cleanup | public void cleanup()(Code) | | |
findExactTypes | public void findExactTypes(char[] name, boolean findMembers, int searchFor, ISearchRequestor storage)(Code) | | Find the top-level types that are defined
in the current environment and whose simple name matches the given name.
The types found are passed to one of the following methods (if additional
information is known about the types):
ISearchRequestor.acceptType(char[][] packageName, char[] typeName)
ISearchRequestor.acceptClass(char[][] packageName, char[] typeName, int modifiers)
ISearchRequestor.acceptInterface(char[][] packageName, char[] typeName, int modifiers)
This method can not be used to find member types... member
types are found relative to their enclosing type.
|
findPackages | public void findPackages(char[] prefix, ISearchRequestor requestor)(Code) | | Find the packages that start with the given prefix.
A valid prefix is a qualified name separated by periods
(ex. java.util).
The packages found are passed to:
ISearchRequestor.acceptPackage(char[][] packageName)
|
findTypes | public void findTypes(char[] prefix, boolean findMembers, boolean camelCaseMatch, int searchFor, ISearchRequestor storage)(Code) | | Find the top-level types that are defined
in the current environment and whose name starts with the
given prefix. The prefix is a qualified name separated by periods
or a simple name (ex. java.util.V or V).
The types found are passed to one of the following methods (if additional
information is known about the types):
ISearchRequestor.acceptType(char[][] packageName, char[] typeName)
ISearchRequestor.acceptClass(char[][] packageName, char[] typeName, int modifiers)
ISearchRequestor.acceptInterface(char[][] packageName, char[] typeName, int modifiers)
This method can not be used to find member types... member
types are found relative to their enclosing type.
|
toStringChar | protected String toStringChar(char[] name)(Code) | | Returns a printable string for the array.
|
toStringCharChar | protected String toStringCharChar(char[][] names)(Code) | | Returns a printable string for the array.
|
|
|