com.threerings.presents.tools
Class GenServiceTask.ServiceListener

java.lang.Object
  extended by com.threerings.presents.tools.GenServiceTask.ServiceListener
All Implemented Interfaces:
Comparable<GenServiceTask.ServiceListener>
Enclosing class:
GenServiceTask

public class GenServiceTask.ServiceListener
extends Object
implements Comparable<GenServiceTask.ServiceListener>

Used to keep track of custom InvocationListener derivations.


Field Summary
 ImportSet imports
          Contains all imports required for the parameters of the methods in this listener.
 Class<?> listener
           
 List<InvocationTask.ServiceMethod> methods
           
 
Constructor Summary
GenServiceTask.ServiceListener(Class<?> service, Class<?> listener)
           
 
Method Summary
 String adapterCtorArgs()
           
protected  void addInterfaces(Class<?> listener, Set<Class<?>> ifaces)
           
 int compareTo(GenServiceTask.ServiceListener other)
           
 boolean equals(Object other)
           
 String getListenerName()
           
 int hashCode()
           
 boolean hasParameterizedMethodArgs()
          Checks whether any of our methods have parameterized types.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listener

public Class<?> listener

methods

public List<InvocationTask.ServiceMethod> methods

imports

public ImportSet imports
Contains all imports required for the parameters of the methods in this listener.

Constructor Detail

GenServiceTask.ServiceListener

public GenServiceTask.ServiceListener(Class<?> service,
                                      Class<?> listener)
Method Detail

addInterfaces

protected void addInterfaces(Class<?> listener,
                             Set<Class<?>> ifaces)

hasParameterizedMethodArgs

public boolean hasParameterizedMethodArgs()
Checks whether any of our methods have parameterized types.


getListenerName

public String getListenerName()

adapterCtorArgs

public String adapterCtorArgs()

compareTo

public int compareTo(GenServiceTask.ServiceListener other)
Specified by:
compareTo in interface Comparable<GenServiceTask.ServiceListener>

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object