com.threerings.presents.tools
Class GenReceiverTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.threerings.presents.tools.GenTask
com.threerings.presents.tools.InvocationTask
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.
|
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.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 |
_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
GenReceiverTask
public GenReceiverTask()
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