Package gov.nih.mipav.model.scripting
Class ParsedActionLine
java.lang.Object
gov.nih.mipav.model.scripting.ParsedActionLine
This object holds data parsed from a single line in a script, including the action to be taken and the parameters to pass to that action.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe String representing the action which should be taken when this line is executed.private ParameterTableA table of parameters which may/will be used when the action is performed. -
Constructor Summary
ConstructorsConstructorDescriptionParsedActionLine(String newAction, ParameterTable newParamList) Creates a new ParsedActionLine object. -
Method Summary
Modifier and TypeMethodDescriptionReturns this parsed action and its parameters in String form.Returns the action which should be taken when this line is executed.intReturns the number of parameters which will be passed to this action.Returns the table of parameters which will be passed to this action when it is executed.
-
Field Details
-
action
The String representing the action which should be taken when this line is executed. -
paramList
A table of parameters which may/will be used when the action is performed.
-
-
Constructor Details
-
ParsedActionLine
Creates a new ParsedActionLine object.- Parameters:
newAction- The String representing the action to be takennewParamList- The table of parameters which may/will be used when the action is performed
-
-
Method Details
-
convertToString
Returns this parsed action and its parameters in String form. May be used to write out the action line to a script.- Returns:
- this parsed action and its parameters in String form
-
getAction
Returns the action which should be taken when this line is executed.- Returns:
- The String representing the action which should be taken when this line is executed.
-
getParameterCount
public int getParameterCount()Returns the number of parameters which will be passed to this action.- Returns:
- The number of parameters.
-
getParameterTable
Returns the table of parameters which will be passed to this action when it is executed.- Returns:
- The table of parameters to be used when this action is run.
-