Thrift::IDL::Base
Base class for most Thrift::IDL subclasses.
Accessors
my $comments = $obj->children_of_type('Thrift::IDL::Comment');
Returns an array ref of all child objects of the given class
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
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.
To install Thrift::Parser, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Thrift::Parser
CPAN shell
perl -MCPAN -e shell install Thrift::Parser
For more information on module installation, please visit the detailed CPAN module installation guide.