public interface MetadataProvider
CodeCompletion.
The code completion can ask this implementation for various metadata on methods or classes.
The CodeCompletion implementations can use this information to format more meaningful
completion hints.
| Modifier and Type | Method and Description |
|---|---|
String |
getDocumentation(Class<?> clazz) |
String |
getDocumentation(Method method) |
String |
getParameterName(Method method,
int parameterIndex)
Tries to determine the name of a parameter on a method.
|
String |
getTypeName(Type type,
boolean fullNames)
This is a utility method for determining the type name including the type parameters.
|
Method |
getUnproxiedMethod(Method method)
Many of the objects that RHQ exposes in the scripting environment are implemented
using proxies.
|
Method getUnproxiedMethod(Method method)
This method tries to find out if given method comes from a proxy class and if it is, it tries to find the method in one of the interfaces that the proxy implements that corresponds to it. That method is going to have all the metadata - i.e. annotations, generics, etc.
method - the method to inspectString getParameterName(Method method, int parameterIndex)
method - the methodparameterIndex - the index of the method parameterString getDocumentation(Class<?> clazz)
clazz - String getDocumentation(Method method)
method - String getTypeName(Type type, boolean fullNames)
type - the type to determine the name forfullNames - if true, all the types and type parameters will be the full class names, otherwise
only the simple name of the class / type parameter will be used.Copyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.