classRoutines
final class Routines
The entry point of the routine family: functions, procedures, aggregates, operators, operator classes and the generic object commands.
Rule: PG-ROUTINE-001. Every other family reaches the routine rules through these methods: PG-FUNCTION-LOWER-001, PG-ROUTINE-OPTION-LOWER-001, PG-SIGNATURE-LOWER-001, PG-DEFINE-LOWER-001, PG-OPCLASS-LOWER-001, PG-DROP-LOWER-001, PG-COMMENT-LOWER-001, PG-RENAME-LOWER-001, PG-ALTER-OBJECT-LOWER-001 and PG-OBJECT-LOWER-001. Status: Implemented.
Methods§
Lowers a statement of the family, such as CreateFunctionStmt, DefineStmt, DropStmt, RenameStmt or CommentStmt.
Parameters
$statement | Node |
Returns
Throws
ImplementationGap When the statement is not one of the familyCalled from 1
Calls 20
- method-call FunctionRule::create() line 46
- new FunctionRule line 46
- method-call OptionRule::alter() line 47
- new OptionRule line 47
- method-call DropRule::drop() line 48
- new DropRule line 48
- method-call DefineRule::define() line 49
- new DefineRule line 49
- method-call OperatorClassRule::statement() line 50
- new OperatorClassRule line 50
- method-call CommentRule::comment() line 51
- new CommentRule line 51
- method-call CommentRule::label() line 52
- method-call RenameRule::rename() line 53
- new RenameRule line 53
- method-call AlterObjectRule::schema() line 54
- new AlterObjectRule line 54
- method-call AlterObjectRule::owner() line 55
- method-call AlterObjectRule::depends() line 56
- static-call ImplementationGap::production() line 57
public function functionSignature(Node $signature): RoutineSignatureLowers function_with_argtypes: a routine named with or without its argument types.
Parameters
$signature | Node |
Returns
Calls 2
- method-call SignatureRule::function() line 66
- new SignatureRule line 66
public function functionSignatures(Node $list): list<RoutineSignature>Lowers function_with_argtypes_list.
Parameters
$list | Node |
Returns
list<RoutineSignature>Calls 2
- method-call SignatureRule::functions() line 76
- new SignatureRule line 76
public function aggregateSignature(Node $signature): AggregateSignatureLowers aggregate_with_argtypes.
Parameters
$signature | Node |
Returns
Calls 2
- method-call SignatureRule::aggregate() line 84
- new SignatureRule line 84
public function aggregateSignatures(Node $list): list<AggregateSignature>Lowers aggregate_with_argtypes_list.
Parameters
$list | Node |
Returns
list<AggregateSignature>Calls 2
- method-call SignatureRule::aggregates() line 94
- new SignatureRule line 94
public function operatorSignature(Node $signature): OperatorSignatureLowers operator_with_argtypes.
Parameters
$signature | Node |
Returns
Calls 2
- method-call SignatureRule::operator() line 102
- new SignatureRule line 102
public function operatorSignatures(Node $list): list<OperatorSignature>Lowers operator_with_argtypes_list.
Parameters
$list | Node |
Returns
list<OperatorSignature>Calls 2
- method-call SignatureRule::operators() line 112
- new SignatureRule line 112
public function objectKind(Node $kind): ObjectKindLowers an object kind: object_type_any_name, object_type_name, drop_type_name or object_type_name_on_any_name.
Parameters
$kind | Node |
Returns
Calls 2
- method-call ObjectRule::kind() line 120
- new ObjectRule line 120
public function attributeChanges(
Node $list,
class-string<KnownAttribute> $command,
): list<AttributeChange>Lowers operator_def_list: the attributes written in ALTER OPERATOR ... SET and ALTER TYPE ... SET, read as the command whose attribute set is given reads them.
Parameters
$list | Node | |
$command | class-string<KnownAttribute> |
Returns
list<AttributeChange>Calls 2
- method-call OperatorClassRule::changes() line 132
- new OperatorClassRule line 132
Private surface 1§
Implementation details, listed for orientation only.
private Lowering $loweringTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
RoutinesTestcalls