E. Choroba > Treex-PML-2.17 > Treex::PML::Schema::Template

Download:
Treex-PML-2.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 2.16   Source  

NAME ^

Treex::PML::Schema::Template - a class representing templates in a Treex::PML::Schema

SYNOPSIS ^

use Treex::PML::Schema::Template;

DESCRIPTION ^

This class represents templates in a Treex::PML::Schema and is also a base for PMLShema class itself.

METHODS ^

$decl->get_decl_type ()

Returns the constant PML_TEMPLATE_DECL.

$decl->get_decl_type_str ()

Returns the string 'template'.

$decl->simplify ()

Process all modularity instructions used in within the template and simplify embedded templates.

$schema->for_each_decl (sub{...})

This method traverses all nested declarations and sub-declarations and calls a given subroutine passing the sub-declaration object as a parameter.

EXPORT

None by default.

SEE ALSO ^

Treex::PML::Schema, Treex::PML::Schema::Copy

COPYRIGHT AND LICENSE ^

Copyright (C) 2008-2010 by Petr Pajas

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.2 or, at your option, any later version of Perl 5 you may have available.

BUGS ^

None reported... yet.

syntax highlighting: