org.apache.hivemind.annotations.internal
Class AnnotatedModuleLocation

java.lang.Object
  extended by org.apache.hivemind.annotations.internal.AnnotatedModuleLocation
All Implemented Interfaces:
org.apache.hivemind.Location

public final class AnnotatedModuleLocation
extends java.lang.Object
implements org.apache.hivemind.Location

Implementation of the Location interface. Uses a method name of a class as position.

Author:
Achim Huegen

Constructor Summary
AnnotatedModuleLocation(org.apache.hivemind.Resource resource, java.lang.Class moduleClass)
           
AnnotatedModuleLocation(org.apache.hivemind.Resource resource, java.lang.Class moduleClass, java.lang.reflect.Method method)
           
 
Method Summary
 boolean equals(java.lang.Object other)
           
 java.lang.reflect.Method getMethod()
           
 java.lang.Class getModuleClass()
           
 java.lang.String getPosition()
          Returns the position in format "class x, method y"
 org.apache.hivemind.Resource getResource()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AnnotatedModuleLocation

public AnnotatedModuleLocation(org.apache.hivemind.Resource resource,
                               java.lang.Class moduleClass,
                               java.lang.reflect.Method method)

AnnotatedModuleLocation

public AnnotatedModuleLocation(org.apache.hivemind.Resource resource,
                               java.lang.Class moduleClass)
Method Detail

getResource

public org.apache.hivemind.Resource getResource()
Specified by:
getResource in interface org.apache.hivemind.Location

getMethod

public java.lang.reflect.Method getMethod()

getModuleClass

public java.lang.Class getModuleClass()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Overrides:
equals in class java.lang.Object

getPosition

public java.lang.String getPosition()
Returns the position in format "class x, method y"

Specified by:
getPosition in interface org.apache.hivemind.Location
See Also:
Location.getPosition()

toString

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


Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.