| java.lang.Object tide.sources.TypeLocator
TypeLocator | final public class TypeLocator (Code) | | Used to search for types in the trees.
|
Method Summary | |
public static List<FileItem> | locateAllPackages(String javaName) | public static FileItem | locateFirstPackage(String javaName) Quick. | public static List<FileItem> | locateMissingImport(ParserTreeNode imports, String javaSimpleName, String originPackage) Useful to provide some help. | public static List<FileItem> | locateMissingImport(ParserResult pr, String javaSimpleName, String originPackage) Useful to provide some help. | public static FileItem | locateQuick(String javaName) | public static FileItem | locateQuick(String javaName, boolean caseSensitive) | public static FileItem | locateUsingImports(FileItem src, String javaName) | public static FileItem | locateUsingStaticImports(ParserResult pr, SingleClassLoader scl, String javaName, boolean isMethod, String originPackage) | public static List<FileItem> | searchSimpleNamesStartingWith(String start) | public static FileItem | searchTypeForName(String searchForJavaName, boolean ignoreCases, boolean approximateSearchEndingWith) finds a type (ex: snow.utils.Hello) or simply "Hello". |
locateAllPackages | public static List<FileItem> locateAllPackages(String javaName)(Code) | | useful to locate for example all javax packages (there is one in rt.jar, but also in some other jar !! or project)
|
locateFirstPackage | public static FileItem locateFirstPackage(String javaName)(Code) | | Quick. Be careful, returns the first hit, ...
Be careful, several libs defines "javax" root packages...
|
locateMissingImport | public static List<FileItem> locateMissingImport(ParserTreeNode imports, String javaSimpleName, String originPackage)(Code) | | Useful to provide some help.
only the types that are not in the imports node (as wildcard OR single type) |
locateMissingImport | public static List<FileItem> locateMissingImport(ParserResult pr, String javaSimpleName, String originPackage)(Code) | | Useful to provide some help.
only the types that are not in the imports node (as wildcard OR single type) |
locateQuick | public static FileItem locateQuick(String javaName, boolean caseSensitive)(Code) | | uses the models hashtables to quickly locate a type
|
locateUsingStaticImports | public static FileItem locateUsingStaticImports(ParserResult pr, SingleClassLoader scl, String javaName, boolean isMethod, String originPackage)(Code) | | This is the best, using imports !
Parameters: originPackage - is used to try to match other classes in the same package as the source where this was called. |
searchTypeForName | public static FileItem searchTypeForName(String searchForJavaName, boolean ignoreCases, boolean approximateSearchEndingWith)(Code) | | finds a type (ex: snow.utils.Hello) or simply "Hello".
TODO: use package names to limit search scope ?
|
|
|