NAME

Lang::Tree::Builder::Data - Tree Data

SYNOPSIS

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();
}

DESCRIPTION

new

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.

add

$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.

classes

returns an array of classes, or a reference to the same, sorted by name.

finalize

calls substantiate() on each cached class.

SEE ALSO

Lang::Tree::Builder

AUTHOR

Bill Hails, <me@billhails.net>

COPYRIGHT AND LICENSE

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.