Class VariableType
Represents a variable type.
Direct known subclasses
Peg\Lib\Definitions\Element\ClassVariable, Peg\Lib\Definitions\Element\GlobalVariable, Peg\Lib\Definitions\Element\Parameter, Peg\Lib\Definitions\Element\ReturnType, Peg\Lib\Definitions\Element\TypeDef
public
|
|
public
string
|
#
GetDeclarationCode( )
Converts the type specifications to c/c++ code that can be added when generating code. eg: const int* |
public
string
|
$type | |
#
Type of the variable without modifiers (eg: int, double, char, etc...) |
public
string
|
$original_type | |
#
Original type of the variable with all modifiers as passed on constructor. |
public
boolean
|
$is_const | |
#
Flag that indicates if the parameter is constant (const). |
public
boolean
|
$is_unsigned | |
#
Flag that indicates if the variable is unsigned. |
public
boolean
|
$is_reference | |
#
Flag that indicates if the variable is a reference (&). |
public
boolean
|
$is_pointer | |
#
Flag that indicates if the variable is a pointer reference (*). |
public
integer
|
$indirection_level | |
#
Amount of pointers indirection (*). |
public
boolean
|
$is_array | |
#
Flag that indicates if the variable is an array ([]). |
public
string
|
$description | |
#
Description of the element. |