ist.palcom.hgraph
Class Signature

java.lang.Object
  extended by ist.palcom.hgraph.Signature

public class Signature
extends java.lang.Object

Signature class for manifesting the "method" signature of handlers and invokators in terms of returns, designation and requires


Constructor Summary
Signature(java.lang.String[] input, java.lang.String name, java.lang.String returns)
          Constructs a handler signature.
 
Method Summary
 boolean equals(Signature sig)
          Compares this signature with another signature
 java.lang.String[] getInput()
           
 java.lang.String getName()
           
 java.lang.String getReturns()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Signature

public Signature(java.lang.String[] input,
                 java.lang.String name,
                 java.lang.String returns)
Constructs a handler signature. Input and returns may or may not be null

Parameters:
input - an array of eventual required input types in string form
name - the command designation
returns - an eventual return type
Method Detail

getName

public java.lang.String getName()
Returns:
the command designation

getInput

public java.lang.String[] getInput()
Returns:
an array of eventual required input types in string form

getReturns

public java.lang.String getReturns()
Returns:
an eventual return type

equals

public boolean equals(Signature sig)
Compares this signature with another signature

Parameters:
sig - the signature to be compared
Returns:
true iff they are equal. False if not.