TDME2 1.9.121
Classes | Public Member Functions | Private Attributes | List of all members
MiniScript::ScriptMethod Class Referenceabstract

Script method. More...

#include <tdme/utilities/MiniScript.h>

Collaboration diagram for MiniScript::ScriptMethod:
Collaboration graph

Classes

struct  ArgumentType
 

Public Member Functions

 ScriptMethod (const vector< ArgumentType > &argumentTypes={}, ScriptVariableType returnValueType=ScriptVariableType::TYPE_VOID)
 Constructor. More...
 
virtual ~ScriptMethod ()
 Destructor. More...
 
virtual const string getMethodName ()=0
 
virtual void executeMethod (const vector< ScriptVariable > &argumentValues, ScriptVariable &returnValue, const ScriptStatement &statement)=0
 Execute script method. More...
 
const vector< ArgumentType > & getArgumentTypes ()
 
const ScriptVariableTypegetReturnValueType ()
 
virtual bool isVariadic ()
 
virtual bool isMixedReturnValue ()
 
virtual ScriptOperator getOperator ()
 
virtual string getDescription ()
 

Private Attributes

vector< ArgumentTypeargumentTypes
 
ScriptVariableType returnValueType
 

Detailed Description

Script method.

Definition at line 598 of file MiniScript.h.

Constructor & Destructor Documentation

◆ ScriptMethod()

ScriptMethod ( const vector< ArgumentType > &  argumentTypes = {},
ScriptVariableType  returnValueType = ScriptVariableType::TYPE_VOID 
)
inline

Constructor.

Parameters
argumentTypesargument types
returnValueTypereturn value type

Definition at line 611 of file MiniScript.h.

◆ ~ScriptMethod()

virtual ~ScriptMethod ( )
inlinevirtual

Destructor.

Definition at line 616 of file MiniScript.h.

Member Function Documentation

◆ executeMethod()

virtual void executeMethod ( const vector< ScriptVariable > &  argumentValues,
ScriptVariable returnValue,
const ScriptStatement statement 
)
pure virtual

Execute script method.

Parameters
argumentValuesargument values
returnValuereturn value
statementstatement

◆ getArgumentTypes()

const vector< ArgumentType > & getArgumentTypes ( )
inline
Returns
arguments

Definition at line 634 of file MiniScript.h.

◆ getDescription()

virtual string getDescription ( )
inlinevirtual
Returns
description

Definition at line 669 of file MiniScript.h.

◆ getMethodName()

virtual const string getMethodName ( )
pure virtual
Returns
script method name

◆ getOperator()

virtual ScriptOperator getOperator ( )
inlinevirtual
Returns
operator

Definition at line 662 of file MiniScript.h.

◆ getReturnValueType()

const ScriptVariableType & getReturnValueType ( )
inline
Returns
return value type

Definition at line 641 of file MiniScript.h.

◆ isMixedReturnValue()

virtual bool isMixedReturnValue ( )
inlinevirtual
Returns
if mixed return value

Definition at line 655 of file MiniScript.h.

◆ isVariadic()

virtual bool isVariadic ( )
inlinevirtual
Returns
if variadic method

Definition at line 648 of file MiniScript.h.

Member Data Documentation

◆ argumentTypes

vector<ArgumentType> argumentTypes
private

Definition at line 674 of file MiniScript.h.

◆ returnValueType

ScriptVariableType returnValueType
private

Definition at line 675 of file MiniScript.h.


The documentation for this class was generated from the following file: