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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddParameter(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 annotationCommandNameorIAnnotatedObjectDescriptor.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).booleanCheck if the object has provided some help via annotations.void
-
Constructor Details
-
AnnotatedObjectDescriptor
-
-
Method Details
-
getUsage
Description copied from interface:IAnnotatedObjectDescriptorGet the usage information, for example provided by the annotationUsage, or by a combination of theIAnnotatedObjectDescriptor.getIdentifier()andArgumentDescriptor.appendUsage(java.lang.StringBuilder).- Specified by:
getUsagein 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:IAnnotatedObjectDescriptorGet the Icon representing the annotated object, for example provided by the annotationIcon.- Specified by:
getIconin interfaceIAnnotatedObjectDescriptor- Returns:
- the Icon as a URL
-
setUsage
-
getIdentifier
Description copied from interface:IAnnotatedObjectDescriptorGet the identifier for the annotated object, for example provided by the annotationCommandNameorIAnnotatedObjectDescriptor.getName().- Specified by:
getIdentifierin interfaceIAnnotatedObjectDescriptor- Returns:
- the identifier
-
getName
Description copied from interface:IAnnotatedObjectDescriptorGet the name, for example provided by the annotationName.- Specified by:
getNamein interfaceIAnnotatedObjectDescriptor- Returns:
- the name
-
getHelp
Description copied from interface:IAnnotatedObjectDescriptorGet the help String, for example provided by the annotationHelp.- Specified by:
getHelpin interfaceIAnnotatedObjectDescriptor- Returns:
- the help
-
getHelpUrl
Description copied from interface:IAnnotatedObjectDescriptorGet the help URL, for example provided by the annotationHelpUrl.- Specified by:
getHelpUrlin interfaceIAnnotatedObjectDescriptor- Returns:
- the help URL
-
getHelpLocale
Description copied from interface:IAnnotatedObjectDescriptorGet the help locale- Specified by:
getHelpLocalein interfaceIAnnotatedObjectDescriptor- Returns:
- the locale
-
getArguments
Description copied from interface:IAnnotatedObjectDescriptorGet descriptors for the fields annotated by the annotationArgument. TODO Should this have been IArgumentDescriptor ?- Specified by:
getArgumentsin interfaceIAnnotatedObjectDescriptor- Returns:
- the list of annotated arguments, see
ArgumentDescriptor
-
isHelpAvailable
public boolean isHelpAvailable()Description copied from interface:IAnnotatedObjectDescriptorCheck if the object has provided some help via annotations.- Specified by:
isHelpAvailablein interfaceIAnnotatedObjectDescriptor- Returns:
- true if the object or arguments were annotated with
Help.
-
addParameter
-