C# Class YAMP.SystemFunction

SystemFunction is a special kind of ArgumentFunction, which saves the passed ParseContext in a variable, which can be accessed over the property Context.
Inheritance: ArgumentFunction
Exibir arquivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
Perform ( ParseContext context, Value argument ) : Value

Performs the function in the given context.

SystemFunction ( ParseContext context ) : System

Creates a new system function with a specific context.

Protected Methods

Method Description
RaiseNotification ( NotificationType notificationType, String message ) : void

Raises a notification event.

Method Details

Perform() public method

Performs the function in the given context.
public Perform ( ParseContext context, Value argument ) : Value
context ParseContext The context where the function is executed.
argument Value The argument of the function.
return Value

RaiseNotification() protected method

Raises a notification event.
protected RaiseNotification ( NotificationType notificationType, String message ) : void
notificationType NotificationType The type of notification.
message String The message to use.
return void

SystemFunction() public method

Creates a new system function with a specific context.
public SystemFunction ( ParseContext context ) : System
context ParseContext The given context.
return System