Help-Site Computer Manuals
Software
Hardware
Programming
Networking
  Algorithms & Data Structures   Programming Languages   Revision Control
  Protocols
  Cameras   Computers   Displays   Keyboards & Mice   Motherboards   Networking   Printers & Scanners   Storage
  Windows   Linux & Unix   Mac

RPC::Lite::Signature
Object representation of method signatures.

RPC::Lite::Signature - Object representation of method signatures.



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.
Programminig
Wy
Wy
yW
Wy
Programming
Wy
Wy
Wy
Wy