Package ij.macro
Class ExtensionDescriptor
- java.lang.Object
-
- ij.macro.ExtensionDescriptor
-
public class ExtensionDescriptor extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int[]argTypesMacroExtensionhandlerjava.lang.Stringname
-
Constructor Summary
Constructors Constructor Description ExtensionDescriptor(java.lang.String theName, int[] theArgTypes, MacroExtension theHandler)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancheckArguments(java.lang.Object[] args)static voidconvertOutputType(Variable variable, java.lang.Object object)static java.lang.ObjectconvertVariable(Interpreter interp, int rawType, Variable var)java.lang.Stringdispatch(Functions func)static intgetRawType(int argType)static java.lang.StringgetTypeName(int argType)static booleanisOptionalArg(int argType)static booleanisOutputArg(int argType)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, int type)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, int[] types)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3, int t4)static ExtensionDescriptornewDescriptor(java.lang.String theName, MacroExtension theHandler, java.lang.Integer[] types)
-
-
-
Field Detail
-
name
public java.lang.String name
-
argTypes
public int[] argTypes
-
handler
public MacroExtension handler
-
-
Constructor Detail
-
ExtensionDescriptor
public ExtensionDescriptor(java.lang.String theName, int[] theArgTypes, MacroExtension theHandler)
-
-
Method Detail
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int[] types)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int type)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3, int t4)
-
newDescriptor
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, java.lang.Integer[] types)
-
isOptionalArg
public static boolean isOptionalArg(int argType)
-
isOutputArg
public static boolean isOutputArg(int argType)
-
getRawType
public static int getRawType(int argType)
-
checkArguments
public boolean checkArguments(java.lang.Object[] args)
-
getTypeName
public static java.lang.String getTypeName(int argType)
-
convertVariable
public static java.lang.Object convertVariable(Interpreter interp, int rawType, Variable var)
-
convertOutputType
public static void convertOutputType(Variable variable, java.lang.Object object)
-
dispatch
public java.lang.String dispatch(Functions func)
-
-