Java Doc for GiLoader.java in  » Ajax » dwr » org » directwebremoting » drapgen » loader » gi » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Ajax » dwr » org.directwebremoting.drapgen.loader.gi 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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

Field Summary
protected  Builderbuilder
    
protected  Set<String>deprecatedTypes
    
final protected static  Loggerlog
    
protected  Map<String, Document>types
    

Constructor Summary
public  GiLoader(File source)
    

Method Summary
protected  voidapplyPostProcessingHacks()
    
protected  voidapplyPreProcessingHacks()
    
protected  voidchangeAttributeValue(String typename, String elementXPath, String attributeName, String newValue)
    
protected  StringcheckAlternativeNames(String className)
    
protected  voidcopyMixinFunctions()
    
protected  Set<List<Parameter>>getGiParamList(Element element, String debugName, Project project)
    
protected  List<String>getSuperClasses(Document doc)
     Find the super class names listed in the given document.
protected  TypegetType(Project project, String className)
    
protected  StringhasLocalVersion(String className)
    
protected  booleanisDeprecated(String className)
    
protected  voidload(File source)
    
protected  voidloadGiClasses(File directory)
    
public  voidloadToProject(Project project)
    
protected  StringreadDocumentation(Element xomElement)
    
protected  ParameterreadGiReturnType(Element element, Project project, String name)
     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.
protected  voidremoveElement(String typename, String xpath)
    
protected  booleanskipOnInput(String className)
    
public static  StringstripToNull(String input)
    
protected  voidtrimDuplicateMethods()
    

Field Detail
builder
protected Builder builder(Code)
The XOM document builder



deprecatedTypes
protected Set<String> deprecatedTypes(Code)
What classes have been deprecated?



log
final protected static Logger log(Code)
The log stream



types
protected Map<String, Document> types(Code)
Our cache of loaded GI documents




Constructor Detail
GiLoader
public GiLoader(File source) throws Exception(Code)

Parameters:
  source - Where we read the API XML source from




Method Detail
applyPostProcessingHacks
protected void applyPostProcessingHacks()(Code)



applyPreProcessingHacks
protected void applyPreProcessingHacks()(Code)



changeAttributeValue
protected void changeAttributeValue(String typename, String elementXPath, String attributeName, String newValue)(Code)



checkAlternativeNames
protected String checkAlternativeNames(String className)(Code)
We might need to use differing versions of class names



copyMixinFunctions
protected void copyMixinFunctions() throws InterruptedException(Code)
Copying mixin functions because Java does not do MI
throws:
  InterruptedException - If the threading breaks



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



loadToProject
public void loadToProject(Project project)(Code)



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



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.