Class TCasScriptRegisteredHandler

Unit

Declaration

type TCasScriptRegisteredHandler = class(TObject)

Description

Hierarchy

  • TObject
  • TCasScriptRegisteredHandler

Overview

Methods

Public constructor Create( AHandler: TCasScriptFunctionHandler; AFunctionClass: TCasScriptFunctionClass; const AArgumentClasses: TCasScriptValueClassArray; const AVariableArgumentsCount: boolean);

Properties

Public property Handler: TCasScriptFunctionHandler read FHandler;
Public property FunctionClass: TCasScriptFunctionClass read FFunctionClass;
Public property ArgumentClasses: TCasScriptValueClassArray read FArgumentClasses;
Public property VariableArgumentsCount: boolean read FVariableArgumentsCount;

Description

Methods

Public constructor Create( AHandler: TCasScriptFunctionHandler; AFunctionClass: TCasScriptFunctionClass; const AArgumentClasses: TCasScriptValueClassArray; const AVariableArgumentsCount: boolean);
 

Properties

Public property Handler: TCasScriptFunctionHandler read FHandler;
 
Public property FunctionClass: TCasScriptFunctionClass read FFunctionClass;
 
Public property ArgumentClasses: TCasScriptValueClassArray read FArgumentClasses;
 
Public property VariableArgumentsCount: boolean read FVariableArgumentsCount;

Is the handler able to receive any number of arguments.

If yes, then the last argument class may be repeated any number of times (but must occur at least once). That is, the ArgumentClasses array dictates the required arguments, and more arguments are allowed. Note that this means that at least one argument must be allowed (we have to know the argument class that can be repeated at the end), otherwise the handler will not be able to receive variable number of arguments anyway.


Generated by PasDoc 0.16.0.