C# Class Rakudo.Runtime.Parameter

Represents a parameter in a signature.
Afficher le fichier Open project: jnthn/6model Class Usage Examples

Méthodes publiques

Свойство Type Description
DefaultValue Rakudo.Metamodel.RakudoObject
Definedness DefinednessConstraint
Flags int
Name string
Type Rakudo.Metamodel.RakudoObject
VariableLexpadPosition int
VariableName string

Méthodes publiques

Méthode 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 méthode

Tests whether the flag is optional.
public IsOptional ( ) : bool
Résultat bool

Parameter() public méthode

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
Résultat System

Property Details

DefaultValue public_oe property

Default RakudoObject for optional parameters.
public RakudoObject,Rakudo.Metamodel DefaultValue
Résultat Rakudo.Metamodel.RakudoObject

Definedness public_oe property

Whether a defined or undefined value is required.
public DefinednessConstraint Definedness
Résultat DefinednessConstraint

Flags public_oe property

Parameter flags.
public int Flags
Résultat int

Name public_oe property

Name, for named parameters.
public string Name
Résultat string

Type public_oe property

The type of the parameter.
public RakudoObject,Rakudo.Metamodel Type
Résultat Rakudo.Metamodel.RakudoObject

VariableLexpadPosition public_oe property

The position in the lexpad where the variable will be stored.
public int VariableLexpadPosition
Résultat int

VariableName public_oe property

The name of the lexical to bind the parameter to.
public string VariableName
Résultat string