org.xwiki.editor.tool.autocomplete
Interface AutoCompletionMethodFinder
@Role
public interface AutoCompletionMethodFinder
Allows contributing special hints. For example for Script Services, instead of returning a hint of get which
is the method provided by org.xwiki.script.service.ScriptServiceManager (the class type of services)
we return the component hints of all registered org.xwiki.script.service.ScriptService components found in
the wiki.
- Version:
- $Id$
findMethods
Hints findMethods(Class variableClass,
String fragmentToMatch)
- Parameters:
variableClass - the class for which to find methods to return as autocompletion hintsfragmentToMatch - the filter to only return methods matching the passed string
- Returns:
- the autocompletion hints
findMethodReturnTypes
List<Class> findMethodReturnTypes(Class propertyClass,
String methodReferenceName)
- Parameters:
propertyClass - the class for which to find the return type for the passed "method name"methodReferenceName - the name pointing to a method (e.g. the method name or a hint for a Script Service,
etc)
- Returns:
- the return type of the method represented by
methodReferenceName applied on propertyClass
Copyright © 2004-2013 XWiki. All Rights Reserved.