Java Code Examples for fr.adrienbrault.idea.symfony2plugin.util.MethodMatcher#CallToSignature
The following examples show how to use
fr.adrienbrault.idea.symfony2plugin.util.MethodMatcher#CallToSignature .
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: Symfony2InterfacesUtil.java From idea-php-laravel-plugin with MIT License | 5 votes |
private List<Method> getCallToSignatureInterfaceMethods(PsiElement e, Collection<MethodMatcher.CallToSignature> signatures) { List<Method> methods = new ArrayList<Method>(); for(MethodMatcher.CallToSignature signature: signatures) { Method method = getInterfaceMethod(e.getProject(), signature.getInstance(), signature.getMethod()); if(method != null) { methods.add(method); } } return methods; }
Example 2
Source File: Symfony2InterfacesUtil.java From idea-php-laravel-plugin with MIT License | 5 votes |
public static Collection<MethodMatcher.CallToSignature> getFormBuilderInterface() { Collection<MethodMatcher.CallToSignature> signatures = new ArrayList<MethodMatcher.CallToSignature>(); signatures.add(new MethodMatcher.CallToSignature("\\Symfony\\Component\\Form\\FormBuilderInterface", "add")); signatures.add(new MethodMatcher.CallToSignature("\\Symfony\\Component\\Form\\FormBuilderInterface", "create")); signatures.add(new MethodMatcher.CallToSignature("\\Symfony\\Component\\Form\\FormInterface", "add")); signatures.add(new MethodMatcher.CallToSignature("\\Symfony\\Component\\Form\\FormInterface", "create")); return signatures; }
Example 3
Source File: ConstantEnumCompletionProvider.java From idea-php-symfony2-plugin with MIT License | 4 votes |
public ConstantEnumCompletionProvider(MethodMatcher.CallToSignature callToSignature, EnumConstantFilter enumConstantFilter, EnumType enumType) { this.callToSignature = callToSignature; this.enumConstantFilter = enumConstantFilter; this.enumType = enumType; }
Example 4
Source File: ConstantEnumCompletionProvider.java From idea-php-symfony2-plugin with MIT License | 4 votes |
public MethodMatcher.CallToSignature getCallToSignature() { return callToSignature; }
Example 5
Source File: ParameterLanguageInjector.java From idea-php-symfony2-plugin with MIT License | 4 votes |
MethodLanguageInjection(String languageId, String prefix, String suffix, MethodMatcher.CallToSignature[] signatures) { this.language = languageId; this.prefix = prefix; this.suffix = suffix; this.signatures = signatures; }
Example 6
Source File: ParameterLanguageInjector.java From idea-php-symfony2-plugin with MIT License | 4 votes |
public MethodMatcher.CallToSignature[] getSignatures() { return signatures; }