|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
com.threerings.presents.tools.GenTask
com.threerings.presents.tools.InvocationTask
com.threerings.presents.tools.GenServiceTask
public class GenServiceTask
An Ant task for generating invocation service marshalling and unmarshalling classes. TODO: when generating the imports for exported action script files, there are just enough conversions of primitive types (e.g. float -> Number), array types (e.g. int[] -> TypedArray) and three rings utility types (e.g. float -> Float) to make the existing serivces work. It should be possible to create a complete list of these conversions so that future services can be generated without problems.
| Nested Class Summary | |
|---|---|
class |
GenServiceTask.Adapter
Used to track services for which we should create listener adapters in actionscript. |
class |
GenServiceTask.Providerless
Used to track services for which we should not generate a provider interface. |
class |
GenServiceTask.ServiceListener
Used to keep track of custom InvocationListener derivations. |
| Nested classes/interfaces inherited from class com.threerings.presents.tools.InvocationTask |
|---|
InvocationTask.ListenerArgument, InvocationTask.ServiceMethod |
| Constructor Summary | |
|---|---|
GenServiceTask()
|
|
| Method Summary | |
|---|---|
GenServiceTask.Adapter |
createAdapter()
|
GenServiceTask.Providerless |
createProviderless()
|
void |
processClass(File source,
Class<?> service)
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. |
void |
setVerbose(boolean verbose)
Configures to output extra information when generating code. |
| Methods inherited from class com.threerings.presents.tools.InvocationTask |
|---|
execute |
| Methods inherited from class com.threerings.presents.tools.GenTask |
|---|
addFileset, setChecking, setClasspathref, setHeader |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, 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, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GenServiceTask()
| Method Detail |
|---|
public void setVerbose(boolean verbose)
public void setAsroot(File asroot)
public GenServiceTask.Providerless createProviderless()
public GenServiceTask.Adapter createAdapter()
public void processClass(File source,
Class<?> service)
throws Exception
GenTask
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||