Lang::Tree::Builder::Data - Tree Data
use Lang::Tree::Builder::Parser; my $parser = new Lang::Tree::Builder::Parser(); my $data = $parser->parseFile($datafile); foreach my $class ($data->classes()) { my $parent = $class->parent(); my @args = $class->args(); }
my $data = new Lang::Tree::Builder::Data;
Creates and returns a new instance of Data. Don't do this, the parser does it for you.
$data->add($class);
$class is a Lang::Tree::Builder::Class. Again the parser does this for you. The $data object merely caches the class object. Note that this is only called for classes that are declared in the config, not for classes that are just mentioned as argument types for other constructors.
$class
Lang::Tree::Builder::Class
$data
returns an array of classes, or a reference to the same, sorted by name.
calls substantiate() on each cached class.
substantiate()
Lang::Tree::Builder
Bill Hails, <me@billhails.net>
Copyright (C) 2008 by Bill Hails
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.8 or, at your option, any later version of Perl 5 you may have available.
To install Lang::Tree::Builder, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lang::Tree::Builder
CPAN shell
perl -MCPAN -e shell install Lang::Tree::Builder
For more information on module installation, please visit the detailed CPAN module installation guide.