Class Parameter
Represents a function or class method parameter.
- Peg\Lib\Definitions\Element\VariableType
-
Peg\Lib\Definitions\Element\Parameter
public
|
#
__construct( string $name, string $type, string $default_value = "", string $description = "" )
Create a parameter element from a declaration specification for the type. |
public
string
|
#
GetDeclarationCode( )
Converts the parameter specifications to c/c++ code that can be added when generating a function/method declaration, eg: const int* num = 0 |
public
string
|
$name | |
#
Holds the name of the element |
public
string
|
$default_value | |
#
The default value of the parameter. |
public
|
$overload | |
#
Reference to the overload owner. |
$description,
$indirection_level,
$is_array,
$is_const,
$is_pointer,
$is_reference,
$is_unsigned,
$original_type,
$type
|