public class VARS extends NamedWarpScriptFunction implements WarpScriptStackFunction
| Constructor and Description |
|---|
VARS(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
apply(WarpScriptStack stack) |
static java.util.List<java.lang.Object> |
getVars(WarpScriptStack.Macro macro) |
static java.util.List<java.lang.Object> |
getVars(WarpScriptStack.Macro macro,
boolean onlyStoreAndPopr)
Loop over the macro statements, in a recursive manner, extracting all variable names.
|
getName, refSnapshot, setName, toStringpublic java.lang.Object apply(WarpScriptStack stack) throws WarpScriptException
apply in interface WarpScriptStackFunctionWarpScriptExceptionpublic static java.util.List<java.lang.Object> getVars(WarpScriptStack.Macro macro) throws WarpScriptException
WarpScriptExceptionpublic static java.util.List<java.lang.Object> getVars(WarpScriptStack.Macro macro, boolean onlyStoreAndPopr) throws WarpScriptException
macro - The root macro to extract the variable names from.onlyStoreAndPopr - Return only variables used for storage. Useful for ASREGS to avoid replacing "global" variables.WarpScriptException - If a STORE call is found to be using neither a String, Long or a list thereof.