com.threerings.presents.tools.cpp
Class GenCPPStreamableTask

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.cpp.GenCPPStreamableTask
All Implemented Interfaces:
Cloneable

public class GenCPPStreamableTask
extends GenTask


Nested Class Summary
 class GenCPPStreamableTask.Generate
           
 
Field Summary
protected  File _cpproot
           
protected  Set<Class<?>> _toProcess
           
protected static String CPP_TMPL
           
protected static String HEADER_TMPL
           
protected static Set<Class<?>> NONSUPER
           
 
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
GenCPPStreamableTask()
           
 
Method Summary
protected static void addInclude(Class<?> ftype, Set<String> includes)
           
 GenCPPStreamableTask.Generate createGenerate()
           
 void execute()
          Performs the actual work of the task.
protected  void processClass(Class<?> sclass)
          Processes a resolved Streamable class instance.
protected  void processClass(File fn, Class<?> sclass)
          Process a class found from the given source file that was on the filesets given to this task.
 void setCpproot(File asroot)
           
 
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

_cpproot

protected File _cpproot

_toProcess

protected Set<Class<?>> _toProcess

NONSUPER

protected static final Set<Class<?>> NONSUPER

HEADER_TMPL

protected static final String HEADER_TMPL
See Also:
Constant Field Values

CPP_TMPL

protected static final String CPP_TMPL
See Also:
Constant Field Values
Constructor Detail

GenCPPStreamableTask

public GenCPPStreamableTask()
Method Detail

createGenerate

public GenCPPStreamableTask.Generate createGenerate()

setCpproot

public void setCpproot(File asroot)

execute

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

Overrides:
execute in class GenTask

processClass

protected void processClass(File fn,
                            Class<?> sclass)
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

processClass

protected void processClass(Class<?> sclass)
                     throws IOException
Processes a resolved Streamable class instance.

Throws:
IOException

addInclude

protected static void addInclude(Class<?> ftype,
                                 Set<String> includes)