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