Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

java.lang.reflect
Class Proxy.ProxySignature  view Proxy.ProxySignature download Proxy.ProxySignature.java

java.lang.Object
  extended byjava.lang.reflect.Proxy.ProxySignature
Enclosing class:
Proxy

private static final class Proxy.ProxySignature
extends java.lang.Object

Helper class which allows hashing of a method name and signature without worrying about return type, declaring class, or throws clause, and which reduces the maximally common throws clause between two methods


Field Summary
(package private) static java.util.HashMap coreMethods
          The core signatures which all Proxy instances handle.
(package private)  java.util.Set exceptions
          The set of compatible thrown exceptions, may be empty
(package private)  Method method
          The underlying Method object, never null
 
Constructor Summary
(package private) Proxy.ProxySignature(Method method)
          Construct a signature
 
Method Summary
(package private)  void checkCompatibility(Proxy.ProxySignature other)
          Given a method, make sure it's return type is identical to this, and adjust this signature's throws clause appropriately
 boolean equals(java.lang.Object other)
          Calculates equality.
 int hashCode()
          Calculates the hash code.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coreMethods

static final java.util.HashMap coreMethods
The core signatures which all Proxy instances handle.


method

final Method method
The underlying Method object, never null


exceptions

final java.util.Set exceptions
The set of compatible thrown exceptions, may be empty

Constructor Detail

Proxy.ProxySignature

Proxy.ProxySignature(Method method)
Construct a signature

Method Detail

checkCompatibility

void checkCompatibility(Proxy.ProxySignature other)
Given a method, make sure it's return type is identical to this, and adjust this signature's throws clause appropriately


hashCode

public int hashCode()
Calculates the hash code.


equals

public boolean equals(java.lang.Object other)
Calculates equality.