| java.lang.Object org.directwebremoting.drapgen.loader.gi.GiLoader
GiLoader | public class GiLoader implements Loader(Code) | | author: Joe Walker [joe at getahead dot ltd dot uk] |
Inner Class :protected class FieldElementBlock extends ProjectElementBlock | |
Inner Class :protected class MethodElementBlock extends ProjectElementBlock | |
Inner Class :protected class ConstructorElementBlock extends ProjectElementBlock | |
Inner Class :abstract protected class ProjectElementBlock implements ElementBlock | |
Inner Class :protected class ImplementsElementBlock extends ProjectElementBlock | |
builder | protected Builder builder(Code) | | The XOM document builder
|
deprecatedTypes | protected Set<String> deprecatedTypes(Code) | | What classes have been deprecated?
|
types | protected Map<String, Document> types(Code) | | Our cache of loaded GI documents
|
GiLoader | public GiLoader(File source) throws Exception(Code) | | Parameters: source - Where we read the API XML source from |
applyPostProcessingHacks | protected void applyPostProcessingHacks()(Code) | | |
applyPreProcessingHacks | protected void applyPreProcessingHacks()(Code) | | |
checkAlternativeNames | protected String checkAlternativeNames(String className)(Code) | | We might need to use differing versions of class names
|
getGiParamList | protected Set<List<Parameter>> getGiParamList(Element element, String debugName, Project project)(Code) | | Read a set of param elements attached to a constructor or method
Parameters: element - The XOM element to read from Parameters: debugName - Parameters: project - A list of found parameters |
getSuperClasses | protected List<String> getSuperClasses(Document doc)(Code) | | Find the super class names listed in the given document.
Perhaps this should be cached somewhere???
Parameters: doc - The document to search in The list of found super classes |
getType | protected Type getType(Project project, String className)(Code) | | We want to alter the names of some classes as we generate them
Parameters: project - The project that we use to lookup Types Parameters: className - The name of the requested class A Type representing the name altered type |
hasLocalVersion | protected String hasLocalVersion(String className)(Code) | | Does the given string have a local version?
|
isDeprecated | protected boolean isDeprecated(String className)(Code) | | Parameters: className - The name to check for deprecation true if the type has been deprecated |
load | protected void load(File source) throws Exception(Code) | | Parameters: source - Where we read the API XML source from |
loadGiClasses | protected void loadGiClasses(File directory)(Code) | | Load the GI XML files into a map of loaded XOM documents
Parameters: directory - The source of GI XML files |
readDocumentation | protected String readDocumentation(Element xomElement)(Code) | | Read the text child element and set the drapgen AST element with it's
content
Parameters: xomElement - the XML element to read from |
readGiReturnType | protected Parameter readGiReturnType(Element element, Project project, String name)(Code) | | Read a return type element attached to a method.
For some reason calling method.toString as part of the log.warn messages
crashes the VM on mac-os. Why???
Parameters: element - The XOM element to read from |
removeElement | protected void removeElement(String typename, String xpath)(Code) | | Utility to remove (an) element(s) by xpath selector from a type
|
skipOnInput | protected boolean skipOnInput(String className)(Code) | | Does the given string have a local version?
|
stripToNull | public static String stripToNull(String input)(Code) | | Utility for simplifying documentation
Parameters: input - The string to call String.trim on before swappingempty replies for null A non blank, trimmed string, possibly null |
trimDuplicateMethods | protected void trimDuplicateMethods()(Code) | | Remove functions implemented by parent
|
|
|