NAME
RPC::Lite::Signature - Object representation of method signatures.
SYNOPSIS
# create a signature for the method 'MethodName' that returns
# an int and takes an int, an array and a struct as arguments.
my $signature =
RPC::Lite::Signature->new( 'MethodName=int:int,array,struct' );
# prints "MethodName=int:int,array,struct
print $signature->AsString();
# change the signature
$signature->FromString( 'OtherMethod=array:int,struct' );
# returns false after the update call to FromString above
my $result = $signature->Matches( 'MethodName=int:int,array,struct' );
DESCRIPTION
RPC::Lite::Signature is an object representation for method signatures.
For the most part, it should be used internally by RPC::Lite.
MethodName
Returns the method name the signature concerns.
ReturnType
Returns a string specifying the return type.
ArgumentTypeList
Returns an array reference to the list of argument types.
AsString
Returns a string representation of the signature.
FromString
Takes a string and sets the signatures properties from that string.
Matches
Returns true if this signature matches the signature passed as an argument. The argument can either be a string (a method specification) or another RPC::Lite::Signature object.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 32:
You can't have =items (as at line 50) unless the first thing after the =over is an =item
=over without closing =back