Package org.eclipse.mat.query.registry
Class AnnotatedObjectDescriptor
java.lang.Object
org.eclipse.mat.query.registry.AnnotatedObjectDescriptor
- All Implemented Interfaces:
IAnnotatedObjectDescriptor
- Direct Known Subclasses:
HeapDumpProviderDescriptor
,QueryDescriptor
,VmInfoDescriptor
A description of the meta information attached to a class such as a query or heap dump provider.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(ArgumentDescriptor descriptor) Get descriptors for the fields annotated by the annotationArgument
.getHelp()
Get the help String, for example provided by the annotationHelp
.Get the help localeGet the help URL, for example provided by the annotationHelpUrl
.getIcon()
Get the Icon representing the annotated object, for example provided by the annotationIcon
.Get the identifier for the annotated object, for example provided by the annotationCommandName
orIAnnotatedObjectDescriptor.getName()
.getName()
Get the name, for example provided by the annotationName
.getUsage
(IQueryContext context) Get the usage information, for example provided by the annotationUsage
, or by a combination of theIAnnotatedObjectDescriptor.getIdentifier()
andArgumentDescriptor.appendUsage(java.lang.StringBuilder)
.boolean
Check if the object has provided some help via annotations.void
-
Constructor Details
-
AnnotatedObjectDescriptor
-
-
Method Details
-
getUsage
Description copied from interface:IAnnotatedObjectDescriptor
Get the usage information, for example provided by the annotationUsage
, or by a combination of theIAnnotatedObjectDescriptor.getIdentifier()
andArgumentDescriptor.appendUsage(java.lang.StringBuilder)
.- Specified by:
getUsage
in interfaceIAnnotatedObjectDescriptor
- Parameters:
context
- used to fill in some arguments leaving usage to explain the remainder- Returns:
- the usage information for that query
-
getIcon
Description copied from interface:IAnnotatedObjectDescriptor
Get the Icon representing the annotated object, for example provided by the annotationIcon
.- Specified by:
getIcon
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the Icon as a URL
-
setUsage
-
getIdentifier
Description copied from interface:IAnnotatedObjectDescriptor
Get the identifier for the annotated object, for example provided by the annotationCommandName
orIAnnotatedObjectDescriptor.getName()
.- Specified by:
getIdentifier
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the identifier
-
getName
Description copied from interface:IAnnotatedObjectDescriptor
Get the name, for example provided by the annotationName
.- Specified by:
getName
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the name
-
getHelp
Description copied from interface:IAnnotatedObjectDescriptor
Get the help String, for example provided by the annotationHelp
.- Specified by:
getHelp
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the help
-
getHelpUrl
Description copied from interface:IAnnotatedObjectDescriptor
Get the help URL, for example provided by the annotationHelpUrl
.- Specified by:
getHelpUrl
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the help URL
-
getHelpLocale
Description copied from interface:IAnnotatedObjectDescriptor
Get the help locale- Specified by:
getHelpLocale
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the locale
-
getArguments
Description copied from interface:IAnnotatedObjectDescriptor
Get descriptors for the fields annotated by the annotationArgument
. TODO Should this have been IArgumentDescriptor ?- Specified by:
getArguments
in interfaceIAnnotatedObjectDescriptor
- Returns:
- the list of annotated arguments, see
ArgumentDescriptor
-
isHelpAvailable
public boolean isHelpAvailable()Description copied from interface:IAnnotatedObjectDescriptor
Check if the object has provided some help via annotations.- Specified by:
isHelpAvailable
in interfaceIAnnotatedObjectDescriptor
- Returns:
- true if the object or arguments were annotated with
Help
.
-
addParameter
-