C# Class Rakudo.Runtime.Parameter

Represents a parameter in a signature.
Show file Open project: jnthn/6model Class Usage Examples

Public Properties

Property Type Description
DefaultValue Rakudo.Metamodel.RakudoObject
Definedness DefinednessConstraint
Flags int
Name string
Type Rakudo.Metamodel.RakudoObject
VariableLexpadPosition int
VariableName string

Public Methods

Method Description
IsOptional ( ) : bool

Tests whether the flag is optional.

Parameter ( RakudoObject Type, string VariableName, int VariableLexpadPosition, string Name, int Flags, DefinednessConstraint Definedness, RakudoObject DefaultValue ) : System

Creates a new parameter object instance.

Method Details

IsOptional() public method

Tests whether the flag is optional.
public IsOptional ( ) : bool
return bool

Parameter() public method

Creates a new parameter object instance.
public Parameter ( RakudoObject Type, string VariableName, int VariableLexpadPosition, string Name, int Flags, DefinednessConstraint Definedness, RakudoObject DefaultValue ) : System
Type Rakudo.Metamodel.RakudoObject
VariableName string
VariableLexpadPosition int
Name string
Flags int
Definedness DefinednessConstraint
DefaultValue Rakudo.Metamodel.RakudoObject
return System

Property Details

DefaultValue public property

Default RakudoObject for optional parameters.
public RakudoObject,Rakudo.Metamodel DefaultValue
return Rakudo.Metamodel.RakudoObject

Definedness public property

Whether a defined or undefined value is required.
public DefinednessConstraint Definedness
return DefinednessConstraint

Flags public property

Parameter flags.
public int Flags
return int

Name public property

Name, for named parameters.
public string Name
return string

Type public property

The type of the parameter.
public RakudoObject,Rakudo.Metamodel Type
return Rakudo.Metamodel.RakudoObject

VariableLexpadPosition public property

The position in the lexpad where the variable will be stored.
public int VariableLexpadPosition
return int

VariableName public property

The name of the lexical to bind the parameter to.
public string VariableName
return string