Java Code Examples for com.jetbrains.php.PhpIndex#getInterfacesByFQN()
The following examples show how to use
com.jetbrains.php.PhpIndex#getInterfacesByFQN() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PhpElementsUtil.java From yiistorm with MIT License | 6 votes |
static public List<ResolveResult> getClassInterfaceResolveResult(Project project, String FQNClassOrInterfaceName) { PhpIndex phpIndex = PhpIndex.getInstance(project); Collection<PhpClass> phpClasses = phpIndex.getClassesByFQN(FQNClassOrInterfaceName); Collection<PhpClass> phpInterfaces = phpIndex.getInterfacesByFQN(FQNClassOrInterfaceName); List<ResolveResult> results = new ArrayList<ResolveResult>(); for (PhpClass phpClass : phpClasses) { results.add(new PsiElementResolveResult(phpClass)); } for (PhpClass phpInterface : phpInterfaces) { results.add(new PsiElementResolveResult(phpInterface)); } return results; }
Example 2
Source File: InterfaceProvider.java From idea-php-toolbox with MIT License | 4 votes |
@NotNull protected Collection<PhpClass> resolveParameter(@NotNull PhpIndex phpIndex, @NotNull String parameter) { return phpIndex.getInterfacesByFQN(parameter); }
Example 3
Source File: InterfaceProvider.java From idea-php-toolbox with MIT License | 4 votes |
@NotNull protected Collection<PhpClass> resolveParameter(@NotNull PhpIndex phpIndex, @NotNull String parameter) { return phpIndex.getInterfacesByFQN(parameter); }
Example 4
Source File: PhpElementsUtil.java From idea-php-symfony2-plugin with MIT License | 4 votes |
@Nullable static public PhpClass getInterface(PhpIndex phpIndex, String className) { Collection<PhpClass> classes = phpIndex.getInterfacesByFQN(className); return classes.isEmpty() ? null : classes.iterator().next(); }
Example 5
Source File: PhpElementsUtil.java From yiistorm with MIT License | 4 votes |
@Nullable static public PhpClass getInterface(PhpIndex phpIndex, String className) { Collection<PhpClass> classes = phpIndex.getInterfacesByFQN(className); return classes.isEmpty() ? null : classes.iterator().next(); }