The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Thrift::IDL::Base

DESCRIPTION

Base class for most Thrift::IDL subclasses.

METHODS

parent

comments

Accessors

children_of_type ($type)

  my $comments = $obj->children_of_type('Thrift::IDL::Comment');

Returns an array ref of all child objects of the given class

array_search ($value, $array_method, $method)

  my $Calculator_service = $document->array_search('Calculator', 'services', 'name');

Given a method $array_method which returns an array of objects on $self, return the object which has $value = $object->$method

setup

A struct has children of type Thrift::IDL::Field and Thrift::IDL::Comment. Walk through all these children and associate the comments with the fields that preceeded them (if perl style) or with the field following.