public class ExtensionDescriptor
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int[] |
argTypes |
MacroExtension |
handler |
java.lang.String |
name |
Constructor and Description |
---|
ExtensionDescriptor(java.lang.String theName,
int[] theArgTypes,
MacroExtension theHandler) |
Modifier and Type | Method and Description |
---|---|
boolean |
checkArguments(java.lang.Object[] args) |
static void |
convertOutputType(ij.macro.Variable variable,
java.lang.Object object) |
static java.lang.Object |
convertVariable(Interpreter interp,
int rawType,
ij.macro.Variable var) |
java.lang.String |
dispatch(Functions func) |
static int |
getRawType(int argType) |
static java.lang.String |
getTypeName(int argType) |
static boolean |
isOptionalArg(int argType) |
static boolean |
isOutputArg(int argType) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
int type) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
int[] types) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
java.lang.Integer[] types) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
int t1,
int t2) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
int t1,
int t2,
int t3) |
static ExtensionDescriptor |
newDescriptor(java.lang.String theName,
MacroExtension theHandler,
int t1,
int t2,
int t3,
int t4) |
public java.lang.String name
public int[] argTypes
public MacroExtension handler
public ExtensionDescriptor(java.lang.String theName, int[] theArgTypes, MacroExtension theHandler)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int[] types)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int type)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, int t1, int t2, int t3, int t4)
public static ExtensionDescriptor newDescriptor(java.lang.String theName, MacroExtension theHandler, java.lang.Integer[] types)
public static boolean isOptionalArg(int argType)
public static boolean isOutputArg(int argType)
public static int getRawType(int argType)
public boolean checkArguments(java.lang.Object[] args)
public static java.lang.String getTypeName(int argType)
public static java.lang.Object convertVariable(Interpreter interp, int rawType, ij.macro.Variable var)
public static void convertOutputType(ij.macro.Variable variable, java.lang.Object object)
public java.lang.String dispatch(Functions func)