Package loci.plugins.macro
Class MacroFunctions
java.lang.Object
loci.plugins.macro.MacroFunctions
- All Implemented Interfaces:
MacroExtension,PlugIn
- Direct Known Subclasses:
LociFunctions
Convenience class that simplifies implemention of ImageJ macro extensions.
It uses reflection to create an extension method for each public method in
the implementing subclass. See
LociFunctions for an example.-
Field Summary
FieldsFields inherited from interface ij.macro.MacroExtension
ARG_ARRAY, ARG_NUMBER, ARG_OPTIONAL, ARG_OUTPUT, ARG_STRING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExtensionDescriptor[]Builds the list of extensions, using reflection, from public methods of this class.handleExtension(String name, Object[] args) void
-
Field Details
-
extensions
-
-
Constructor Details
-
MacroFunctions
public MacroFunctions()
-
-
Method Details
-
run
-
getExtensionFunctions
- Specified by:
getExtensionFunctionsin interfaceMacroExtension
-
handleExtension
- Specified by:
handleExtensionin interfaceMacroExtension
-
buildExtensions
Builds the list of extensions, using reflection, from public methods of this class.
-