public class InstructionSet
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_CLASS |
static java.lang.String |
TYPE_FUNCTION |
static java.lang.String |
TYPE_MACRO |
| Constructor and Description |
|---|
InstructionSet(java.lang.String type) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExportDef(ExportItem e) |
void |
addInstruction(Instruction instruction) |
void |
addMacroDefine(java.lang.String macroName,
FunctionInstructionSet functionInstructionSet) |
void |
addParameter(OperateDataLocalVar localVar) |
void |
appendSpace(java.lang.StringBuilder stringBuilder,
int level) |
CallResult |
execute(RunEnvironment environment,
InstructionSetContext context,
java.util.List<java.lang.String> errorList,
boolean isReturnLastData) |
void |
executeInnerOriginalInstruction(RunEnvironment environment,
java.util.List<java.lang.String> errorList) |
int |
getCurrentPoint() |
java.util.List<ExportItem> |
getExportDef() |
FunctionInstructionSet[] |
getFunctionInstructionSets() |
java.lang.String |
getGlobeName() |
Instruction |
getInstruction(int point) |
int |
getInstructionLength() |
FunctionInstructionSet |
getMacroDefine(java.lang.String macroName) |
java.lang.String |
getName() |
java.lang.String[] |
getOutAttrNames() |
java.lang.String[] |
getOutFunctionNames() |
OperateDataLocalVar[] |
getParameters() |
java.lang.String |
getType() |
java.lang.String[] |
getVirClasses() |
boolean |
hasMain() |
void |
insertInstruction(int point,
Instruction instruction) |
void |
setGlobeName(java.lang.String globeName) |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
java.lang.String |
toString(int level) |
public static final java.lang.String TYPE_CLASS
public static final java.lang.String TYPE_FUNCTION
public static final java.lang.String TYPE_MACRO
public java.lang.String[] getOutFunctionNames()
public java.lang.String[] getVirClasses()
public java.lang.String[] getOutAttrNames()
throws java.lang.Exception
java.lang.Exceptionpublic CallResult execute(RunEnvironment environment, InstructionSetContext context, java.util.List<java.lang.String> errorList, boolean isReturnLastData) throws java.lang.Exception
environment - context - errorList - isReturnLastData - 是否最后的结果,主要是在执行宏定义的时候需要java.lang.Exceptionpublic void executeInnerOriginalInstruction(RunEnvironment environment, java.util.List<java.lang.String> errorList) throws java.lang.Exception
java.lang.Exceptionpublic int getInstructionLength()
public void addMacroDefine(java.lang.String macroName,
FunctionInstructionSet functionInstructionSet)
public FunctionInstructionSet getMacroDefine(java.lang.String macroName)
public FunctionInstructionSet[] getFunctionInstructionSets()
public void addExportDef(ExportItem e)
public java.util.List<ExportItem> getExportDef()
public OperateDataLocalVar[] getParameters()
public void addParameter(OperateDataLocalVar localVar)
public void addInstruction(Instruction instruction)
public void insertInstruction(int point,
Instruction instruction)
public Instruction getInstruction(int point)
public int getCurrentPoint()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getGlobeName()
public void setGlobeName(java.lang.String globeName)
public boolean hasMain()
public java.lang.String getType()
public void appendSpace(java.lang.StringBuilder stringBuilder,
int level)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(int level)
Copyright © 2012-2024 Alibaba Group. All Rights Reserved.