com.threerings.presents.tools
Class InvocationTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by com.threerings.presents.tools.GenTask
              extended by com.threerings.presents.tools.InvocationTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GenReceiverTask, GenServiceTask

public abstract class InvocationTask
extends GenTask

A base Ant task for generating invocation service related marshalling and unmarshalling classes.


Nested Class Summary
 class InvocationTask.ListenerArgument
          Used to keep track of invocation service method listener arguments.
 class InvocationTask.ServiceMethod
          Used to keep track of invocation service methods or listener methods.
 
Field Summary
protected  Class<?> _iclient
          Client resolved with the proper classloader so that we can compare it to loaded derived classes.
protected  Class<?> _ilistener
          InvocationService.InvocationListener resolved with the proper classloader so that we can compare it to loaded derived classes.
 
Fields inherited from class com.threerings.presents.tools.GenTask
_checking, _cloader, _filesets, _header, _modifiedPaths, EOL
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
InvocationTask()
           
 
Method Summary
protected static
<T> void
checkedAdd(List<T> list, T value)
           
 InvocationTask.ServiceMethod createAndGatherImports(Method method, ImportSet imports)
          Creates a new service method and adds its basic imports to a set.
 void execute()
          Performs the actual work of the task.
protected static String replacePath(String source, String oldstr, String newstr)
           
 
Methods inherited from class com.threerings.presents.tools.GenTask
addFileset, convertEols, createMap, loadClass, loadClass, mergeTemplate, mergeTemplate, processClass, setChecking, setClasspathref, setHeader, wouldProduceSameFile, writeFile, writeTemplate, writeTemplate
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_ilistener

protected Class<?> _ilistener
InvocationService.InvocationListener resolved with the proper classloader so that we can compare it to loaded derived classes.


_iclient

protected Class<?> _iclient
Client resolved with the proper classloader so that we can compare it to loaded derived classes.

Constructor Detail

InvocationTask

public InvocationTask()
Method Detail

createAndGatherImports

public InvocationTask.ServiceMethod createAndGatherImports(Method method,
                                                           ImportSet imports)
Creates a new service method and adds its basic imports to a set.

Parameters:
method - the method to create
imports - will be filled with the types required by the method

execute

public void execute()
Description copied from class: GenTask
Performs the actual work of the task.

Overrides:
execute in class GenTask

checkedAdd

protected static <T> void checkedAdd(List<T> list,
                                     T value)

replacePath

protected static String replacePath(String source,
                                    String oldstr,
                                    String newstr)