|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MetadataProvider
The scripting implementations don't have to supply an implementation of this interface but
rather one is provided to the 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.
| Method Summary | |
|---|---|
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 Detail |
|---|
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 inspect
String getParameterName(Method method,
int parameterIndex)
method - the methodparameterIndex - the index of the method parameter
String 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||