public class Procedure extends AbstractScript implements JMetaMetaFunctor
Script
may contain several of these, which should be invokable on their own.
The format for a procedure is
#namespace X; #def name(arg0,arg1,...); ... commands #end_def;
Created by Jeff Gaynor
on 3/7/19 at 7:05 PM
Modifier and Type | Class and Description |
---|---|
static class |
Procedure.JM |
Modifier and Type | Field and Description |
---|---|
static String |
DIRECTIVE_MARKER |
protected static String |
END_DEF |
protected static Identifier |
ID_DEF |
protected String |
namespace |
static String |
NAMESPACE |
protected static String |
PROCEDURE_NAME |
protected static String |
START_DEF |
Constructor and Description |
---|
Procedure(List<String> rawContent,
JFunctorFactory functorFactory)
The rawContent is the unprocessed lines of the procedure.
|
Modifier and Type | Method and Description |
---|---|
protected static List<String> |
createTest() |
protected static List<String> |
createTest2() |
Object |
execute() |
List<String> |
getBuffer() |
String |
getFQName() |
String |
getNamespace() |
Object |
getResult() |
String |
getSignature() |
protected void |
initArgs(String linein) |
protected void |
initialize() |
protected void |
initNamespace(String linein) |
static void |
main(String[] args) |
protected static Procedure.JM |
populateStore() |
net.sf.json.JSONArray |
toJSON() |
String |
toString() |
checkVersion, createParser, execute, execute, execute, executeScript, getFunctorMap, getHandlers, hasHandlers
public static final String DIRECTIVE_MARKER
protected String namespace
public static final String NAMESPACE
protected static final String START_DEF
protected static final String END_DEF
protected static final String PROCEDURE_NAME
protected static Identifier ID_DEF
public Procedure(List<String> rawContent, JFunctorFactory functorFactory)
rawContent
- functorFactory
- public String getFQName()
public String getSignature()
protected void initialize()
protected void initNamespace(String linein)
protected void initArgs(String linein)
public String getNamespace()
protected static Procedure.JM populateStore()
public static void main(String[] args)
public Object execute()
execute
in interface JMetaMetaFunctor
public Object getResult()
getResult
in interface JMetaMetaFunctor
public net.sf.json.JSONArray toJSON()
Copyright © 2019. All Rights Reserved.