E. Choroba

NAME

Treex::PML::Schema::Constant - implements constant declaration.

INHERITANCE

This class inherits from Treex::PML::Schema::Decl.

METHODS

See the super-class for the complete list.

$decl->get_decl_type ()

Returns the constant PML_CONSTANT_DECL.

$decl->get_decl_type_str ()

Returns the string 'constant'.

$decl->get_value ()

Return the constant value.

$decl->get_values ()

Returns a singleton list consisting of the constant value (for compatibility with choice declarations).

$decl->is_atomic ()

Returns 1.

$decl->get_content_decl ()

Returns undef.

SEE ALSO

Treex::PML::Schema::Decl, Treex::PML::Schema, Treex::PML::Schema::Choice.

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.