com.threerings.presents.tools
Class GenReceiverTask

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
                  extended by com.threerings.presents.tools.GenReceiverTask
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
GenCPPReceiverTask

public class GenReceiverTask
extends InvocationTask

An Ant task for generating invocation receiver marshalling and unmarshalling classes.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.threerings.presents.tools.InvocationTask
InvocationTask.ListenerArgument, InvocationTask.ServiceMethod
 
Field Summary
protected  File _asroot
          The path to our ActionScript source files.
protected static String AS_DECODER_TMPL
          Specifies the path to the decoder template.
protected static String AS_RECEIVER_TMPL
          Specifies the path to the decoder template.
protected static String DECODER_TMPL
          Specifies the path to the decoder template.
protected static String SENDER_TMPL
          Specifies the path to the sender template.
 
Fields inherited from class com.threerings.presents.tools.InvocationTask
_iclient, _ilistener
 
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
GenReceiverTask()
           
 
Method Summary
protected  void generateDecoder(Class<?> receiver, File source, String rname, String rpackage, List<InvocationTask.ServiceMethod> methods, ImportSet imports, String rcode)
           
protected  void generateSender(File source, String rname, String rpackage, List<?> methods, ImportSet imports)
           
 void processClass(File source, Class<?> receiver)
          Process a class found from the given source file that was on the filesets given to this task.
 void setAsroot(File asroot)
          Configures the path to our ActionScript source files.
 
Methods inherited from class com.threerings.presents.tools.InvocationTask
checkedAdd, createAndGatherImports, execute, replacePath
 
Methods inherited from class com.threerings.presents.tools.GenTask
addFileset, convertEols, createMap, loadClass, loadClass, mergeTemplate, mergeTemplate, 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

_asroot

protected File _asroot
The path to our ActionScript source files.


SENDER_TMPL

protected static final String SENDER_TMPL
Specifies the path to the sender template.

See Also:
Constant Field Values

DECODER_TMPL

protected static final String DECODER_TMPL
Specifies the path to the decoder template.

See Also:
Constant Field Values

AS_DECODER_TMPL

protected static final String AS_DECODER_TMPL
Specifies the path to the decoder template.

See Also:
Constant Field Values

AS_RECEIVER_TMPL

protected static final String AS_RECEIVER_TMPL
Specifies the path to the decoder template.

See Also:
Constant Field Values
Constructor Detail

GenReceiverTask

public GenReceiverTask()
Method Detail

setAsroot

public void setAsroot(File asroot)
Configures the path to our ActionScript source files.


processClass

public void processClass(File source,
                         Class<?> receiver)
                  throws Exception
Description copied from class: GenTask
Process a class found from the given source file that was on the filesets given to this task.

Specified by:
processClass in class GenTask
Throws:
Exception

generateSender

protected void generateSender(File source,
                              String rname,
                              String rpackage,
                              List<?> methods,
                              ImportSet imports)
                       throws Exception
Throws:
Exception

generateDecoder

protected void generateDecoder(Class<?> receiver,
                               File source,
                               String rname,
                               String rpackage,
                               List<InvocationTask.ServiceMethod> methods,
                               ImportSet imports,
                               String rcode)
                        throws Exception
Throws:
Exception