Chris Josephes > ubertext-0.95 > Text::UberText::Node

Download:
ubertext-0.95.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.95   Source  

NAME ^

Text::UberText::Node - Superclass Node Object

DESCRIPTION ^

Text::UberText::Node is a super-class for the Text::UberText::Node::Text and Text::UberText::Node::Command classes. The methods listed below are implemented in both subclasses. The POD documentation for both classes only lists methods that are unique to the particular module, or methods that have different bahavior from the methods listed below.

COMMON METHODS ^

$node=Text::UberText::Node->new();

Creates a new node object.

$node->input($string);

Text string to be processed by the node.

$text=$node->output();

Output generated after the node has been processed and run

$node->process();

Parsing and examination of the node input, completed before it is actually run.

$node->run();

Process external commands using data from the node object.

$node->info();

Returns information on the data within the node

$node->tree();

Returns the $tree object that created the node.

$node->index();

Returns the tree index pointer for the node.

$node->class();

Returns the lest segment of the Perl class for the node. For example, if the actual class is "Text::UberText::Node::Command:, "Command" is returned.

$node->lineNumber();

Returns the line number of the source input that the node text started on.

AUTHOR ^

Chris Josephes <cpj1@visi.com>

SEE ALSO ^

Text::UberText::Node::Command, Text::UberText::Node::Text

COPYRIGHT ^

Copyright 2002, Chris Josephes. All rights reserved. This module is free software. It may be used, redistributed, and/or modified under the same terms as Perl itself. ~