edu.neu.ccs.demeterf.dispatch
Class DBEntry<M>

java.lang.Object
  extended by edu.neu.ccs.demeterf.dispatch.DBEntry<M>
Direct Known Subclasses:
ConstrEntry, MethodEntry

public class DBEntry<M>
extends java.lang.Object

DBEntry is a generic Class that wraps a 'method' (or any kind of related signature class) for inclusion in a MethodDB list.


Constructor Summary
DBEntry(M m, java.lang.String n, java.lang.Class<?> ret, java.lang.Class<?>[] args)
          Create a DBEntry from an M, a Return Type and a List of Argument Types
 
Method Summary
 java.lang.Class<?> arg(int i)
          Return the ith argument of this entry
 boolean equals(java.lang.Object o)
          Is this DBEntry equal to the given Object?
 M getMethod()
          Get the Method that this DBEntry Holds
 int hashCode()
          Return this DBEntry's HashCode
 int numArgs()
          Return the number of arguments for this entry
 java.lang.Class<?> retType()
          Return the return type of this entry
 java.lang.String toString()
          Return the String representation of this DBEntry
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DBEntry

public DBEntry(M m,
               java.lang.String n,
               java.lang.Class<?> ret,
               java.lang.Class<?>[] args)
Create a DBEntry from an M, a Return Type and a List of Argument Types

Method Detail

getMethod

public M getMethod()
Get the Method that this DBEntry Holds


numArgs

public int numArgs()
Return the number of arguments for this entry


arg

public java.lang.Class<?> arg(int i)
Return the ith argument of this entry


retType

public java.lang.Class<?> retType()
Return the return type of this entry


equals

public boolean equals(java.lang.Object o)
Is this DBEntry equal to the given Object?

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Return this DBEntry's HashCode

Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Return the String representation of this DBEntry

Overrides:
toString in class java.lang.Object