alt.jiapi.reflect
Class Signature

java.lang.Object
  extended by alt.jiapi.reflect.Signature

public class Signature
extends java.lang.Object

This class represents a method signature.


Constructor Summary
Signature(java.lang.String descriptor)
          Constructor for Signature.
Signature(java.lang.String returnType, java.lang.String[] params)
          Constructor for Signature.
 
Method Summary
 boolean equals(Signature s)
           
 java.lang.String getDescriptor()
          Get an internal representation of method signature as String.
 java.lang.String[] getParameters()
          Gets the parameters in simple form like 'int' or 'java.lang.Object'.
 java.lang.String getReturnType()
          Gets the return type in simple form like 'int' or 'java.lang.Object'.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Signature

public Signature(java.lang.String descriptor)
Constructor for Signature.

Parameters:
descriptor - Methods descriptor in internal format

Signature

public Signature(java.lang.String returnType,
                 java.lang.String[] params)
Constructor for Signature.

Parameters:
returnType - return type of the method. Return type is is given in simple form like 'int' or 'java.lang.Object'
params - Parameters of method, in simple form.
Method Detail

equals

public boolean equals(Signature s)

getDescriptor

public java.lang.String getDescriptor()
Get an internal representation of method signature as String.


getParameters

public java.lang.String[] getParameters()
Gets the parameters in simple form like 'int' or 'java.lang.Object'.


getReturnType

public java.lang.String getReturnType()
Gets the return type in simple form like 'int' or 'java.lang.Object'.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2001. Documenation generated August 26 2011.