Eric Waters > Thrift-Parser-0.04 > Thrift::IDL::Base

Download:
Thrift-Parser-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Thrift-Parser-0.06

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.

syntax highlighting: