| |
|
| java.lang.Object org.directwebremoting.drapgen.ast.Project
Project | public class Project (Code) | | A Project is a collection of
Type s that we will convert to reverse
ajax proxies.
author: Joe Walker [joe at getahead dot ltd dot uk] |
asObject | public String asObject(String maybeNative)(Code) | | An class name with native types replaced by Object types |
getType | public Type getType(String className)(Code) | | Useful if we have a classname that we know must be defined somewhere,
but might not have been defined yet.
Parameters: className - The potentially existing class name A newly created or existing Type |
hashCode | public int hashCode()(Code) | | |
isSuperClass | public boolean isSuperClass(String name)(Code) | | Is the given (full) class name one that another class claims as it's
ancestor?
Parameters: name - The class name to search for true iff the class has children |
load | public void load(File directory) throws IOException(Code) | | Load the types in the given directory into this Project.
This method does *not* call clear before it loads Types
Parameters: directory - The place to read from throws: IOException - If the read fails. |
save | public void save(File directory) throws IOException(Code) | | Save the types in the current project into XML files in the given
directory.
This helps us separate the process of creating the AST (from the
Javascript) from the process of generating the Java from the AST
Parameters: directory - The place to write to throws: IOException - If the save process fails |
visit | public void visit(Visitor visitor)(Code) | | Allow users to dig into the code in a project
Parameters: visitor - The object to pass around the code in a project |
|
|
|