Lines Matching defs:Pod

2 # Pod/InputObjects.pm -- package which defines objects for input streams
11 package Pod::InputObjects;
21 Pod::InputObjects - objects representing POD input paragraphs, commands, etc.
25 use Pod::InputObjects;
37 This module defines some basic input objects used by B<Pod::Parser> when
45 =item package B<Pod::InputSource>
54 =item package B<Pod::Paragraph>
60 =item package B<Pod::InteriorSequence>
65 =item package B<Pod::ParseTree>
69 a B<Pod::InteriorSequence> object. The nodes appear in the parse-tree
87 package Pod::InputSource;
93 =head1 B<Pod::InputSource>
99 C<Pod::InputSource> objects. Each such object is merely a wrapper around
114 my $pod_input1 = Pod::InputSource->new(-handle => $filehandle);
115 my $pod_input2 = new Pod::InputSource(-handle => $filehandle,
117 my $pod_input3 = new Pod::InputSource(-handle => \*STDIN);
118 my $pod_input4 = Pod::InputSource->new(-handle => \*STDIN,
121 This is a class method that constructs a C<Pod::InputSource> object and
222 package Pod::Paragraph;
226 =head1 B<Pod::Paragraph>
235 =head2 Pod::Paragraph-E<gt>B<new()>
237 my $pod_para1 = Pod::Paragraph->new(-text => $text);
238 my $pod_para2 = Pod::Paragraph->new(-name => $cmd,
240 my $pod_para3 = new Pod::Paragraph(-text => $text);
241 my $pod_para4 = new Pod::Paragraph(-name => $cmd,
243 my $pod_para5 = Pod::Paragraph->new(-name => $cmd,
248 This is a class method that constructs a C<Pod::Paragraph> object and
413 package Pod::InteriorSequence;
417 =head1 B<Pod::InteriorSequence>
426 =head2 Pod::InteriorSequence-E<gt>B<new()>
428 my $pod_seq1 = Pod::InteriorSequence->new(-name => $cmd
430 my $pod_seq2 = new Pod::InteriorSequence(-name => $cmd,
432 my $pod_seq3 = new Pod::InteriorSequence(-name => $cmd,
437 my $pod_seq4 = new Pod::InteriorSequence(-name => $cmd, $ptree);
438 my $pod_seq5 = new Pod::InteriorSequence($cmd, $ptree);
440 This is a class method that constructs a C<Pod::InteriorSequence> object
449 else an array-ref suitable for passing to B<Pod::ParseTree::new> (or
450 it may be a reference to a Pod::ParseTree object).
485 my $ptree = $self->{'-ptree'} || new Pod::ParseTree();
489 $ptree = new Pod::ParseTree($1 ? [$ptree] : $ptree);
526 if (UNIVERSAL::isa($_, 'Pod::InteriorSequence') or
543 if UNIVERSAL::isa($_, 'Pod::InteriorSequence');
704 =head2 Pod::InteriorSequence::B<DESTROY()>
724 package Pod::ParseTree;
728 =head1 B<Pod::ParseTree>
732 text-strings and B<Pod::InteriorSequence> objects (in order of
733 appearance). A B<Pod::ParseTree> object corresponds to this list of
741 =head2 Pod::ParseTree-E<gt>B<new()>
743 my $ptree1 = Pod::ParseTree->new;
744 my $ptree2 = new Pod::ParseTree;
745 my $ptree4 = Pod::ParseTree->new($array_ref);
746 my $ptree3 = new Pod::ParseTree($array_ref);
748 This is a class method that constructs a C<Pod::Parse_tree> object and
777 a B<Pod::ParseTree>. If it is given a single argument that is a reference,
801 (each of which should be either a string or a B<Pod::InteriorSequence>.
903 if UNIVERSAL::isa($_, 'Pod::InteriorSequence');
908 ## nothing to do, Pod::ParseTrees cant have parent pointers
911 =head2 Pod::ParseTree::B<DESTROY()>
931 See L<Pod::Parser>, L<Pod::Select>