Java Doc for AbstractGenerator.java in  » 6.0-JDK-Modules » j2me » com » sun » j2mews » sg » 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 » 6.0 JDK Modules » j2me » com.sun.j2mews.sg 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.j2mews.sg.AbstractGenerator

All known Subclasses:   com.sun.j2mews.sg.StubGenerator,  com.sun.j2mews.sg.RemoteInterfaceGenerator,
AbstractGenerator
abstract public class AbstractGenerator (Code)
We'll generate the Java client proxy for JSR-172.


Field Summary
final public static  StringEXPAND_ARGUMENTS
    
final public static  StringFLOAT_DOUBLE_TO_STRING
    
final public static  StringOPTIMIZE
    
final public static  StringSHOW_ALL_CLDC1_0_INFO
    
protected  StringclassName
    
protected  com.sun.xml.rpc.processor.util.ProcessorEnvironmentenv
    
protected  booleanexpandArguments
     Whether or not the formal parameters on the Stub should get expanded.
protected  StringfullClassName
    
protected  JavaWriterjw
    
protected  Localizerlocalizer
    
protected  LocalizableMessageFactorymessageFactory
     If you're going to call getMessage, then you need to set messageFactory.
protected  booleanoptimize
     Whether to trade readable generated code for more efficient generated code.
protected  StringpackageName
    
protected  Portport
    
protected  Serviceservice
    
protected  booleanshowCldc1_0Info
     Whether or not to display every info message, or just 1 (similar to javac's -deprecation flag).
protected  FilesourceDir
    


Method Summary
protected static  StringbaseName(String fullName)
     This will return a name from @param fullName where everything upto and including the last '.' is removed.
public  voidgenerate(Service service)
    
protected  voidgenerate()
     At this point, the service and port variables are set.
abstract protected  voidgenerateClass()
    
protected  ListgetExpandedParametersList(JavaMethod method)
    
protected  JavaTypegetExpandedReturnType(JavaMethod method)
    
abstract protected  StringgetFullClassName()
     The port and env variables will be set correctly before calling this method.
protected  LocalizablegetMessage(String key)
    
protected  LocalizablegetMessage(String key, String arg)
    
protected  LocalizablegetMessage(String key, String arg1, String arg2)
    
protected  LocalizablegetMessage(String key, String arg1, String arg2, String arg3)
    
protected  LocalizablegetMessage(String key, Localizable l)
    
protected  LocalizablegetMessage(String key, Object[] args)
    
abstract protected  FilegetSourceFile()
     The port and env variables will be set correctly before calling this method.
abstract protected  StringgetSourceFileType()
    
protected  StringinstanceOf(JavaType type, String suffix, Map usedNames)
    
protected  StringinstanceOf(JavaType type, Map usedNames)
    
protected  StringinstanceOf(QName name, String suffix, Map usedNames)
    
protected  StringinstanceOf(String name, String suffix, Map usedNames)
     Make a variable name valid and unique.
public static  booleanisValidType(String type)
     Is @param type valid for MIDP? This assumes CLDC 1.1 (where float and double are okay).
protected  StringjavaTypeToString(JavaType type)
    
protected  Stringlocalize(Localizable msg)
    
protected  voidlog(String msg)
    
protected  StringmakeUniq(String name, Map usedNames)
     Make a variable name unique.
protected  StringmakeVarName(QName name, String prefix, Map usedNames)
     Try to get a unique and somewhat nice looking name.
protected  voidonError(Localizable msg)
    
protected  voidonInfo(Localizable msg)
    
protected  voidonWarning(Localizable msg)
    
public  voidperform(Model model, Configuration config, Properties options)
    
public  voidsetEnvironment(com.sun.xml.rpc.processor.util.ProcessorEnvironment e)
    
protected  voidsetFullClassName(String name)
     Sets the internal state of fullClassName, className, & packageName.
public  voidsetLocalizer(Localizer l)
    
protected  voidwriteImports()
     Here's your chance to import anything.
protected  voidwriteOutGeneratedFile()
    

Field Detail
EXPAND_ARGUMENTS
final public static String EXPAND_ARGUMENTS(Code)



FLOAT_DOUBLE_TO_STRING
final public static String FLOAT_DOUBLE_TO_STRING(Code)



OPTIMIZE
final public static String OPTIMIZE(Code)



SHOW_ALL_CLDC1_0_INFO
final public static String SHOW_ALL_CLDC1_0_INFO(Code)



className
protected String className(Code)



env
protected com.sun.xml.rpc.processor.util.ProcessorEnvironment env(Code)



expandArguments
protected boolean expandArguments(Code)
Whether or not the formal parameters on the Stub should get expanded. It will be done for each parameter and return type, if there's only 1 of them and it's a JavaStructureType.



fullClassName
protected String fullClassName(Code)



jw
protected JavaWriter jw(Code)



localizer
protected Localizer localizer(Code)



messageFactory
protected LocalizableMessageFactory messageFactory(Code)
If you're going to call getMessage, then you need to set messageFactory.



optimize
protected boolean optimize(Code)
Whether to trade readable generated code for more efficient generated code.



packageName
protected String packageName(Code)



port
protected Port port(Code)



service
protected Service service(Code)



showCldc1_0Info
protected boolean showCldc1_0Info(Code)
Whether or not to display every info message, or just 1 (similar to javac's -deprecation flag).



sourceDir
protected File sourceDir(Code)





Method Detail
baseName
protected static String baseName(String fullName)(Code)
This will return a name from @param fullName where everything upto and including the last '.' is removed. eg: "java.lang.String[]" -> "String[]" "java.util.ArrayList" -> "ArrayList"



generate
public void generate(Service service) throws IOException(Code)



generate
protected void generate() throws java.io.IOException(Code)
At this point, the service and port variables are set.



generateClass
abstract protected void generateClass() throws java.io.IOException(Code)



getExpandedParametersList
protected List getExpandedParametersList(JavaMethod method)(Code)
a List of parameters to this method in the stub, takinginto account expandArguments.



getExpandedReturnType
protected JavaType getExpandedReturnType(JavaMethod method)(Code)
the return type taking into account expandArguments.



getFullClassName
abstract protected String getFullClassName()(Code)
The port and env variables will be set correctly before calling this method.



getMessage
protected Localizable getMessage(String key)(Code)



getMessage
protected Localizable getMessage(String key, String arg)(Code)



getMessage
protected Localizable getMessage(String key, String arg1, String arg2)(Code)



getMessage
protected Localizable getMessage(String key, String arg1, String arg2, String arg3)(Code)



getMessage
protected Localizable getMessage(String key, Localizable l)(Code)



getMessage
protected Localizable getMessage(String key, Object[] args)(Code)



getSourceFile
abstract protected File getSourceFile()(Code)
The port and env variables will be set correctly before calling this method. This is the File that gets written to.



getSourceFileType
abstract protected String getSourceFileType()(Code)

See Also:   GeneratorConstants



instanceOf
protected String instanceOf(JavaType type, String suffix, Map usedNames)(Code)



instanceOf
protected String instanceOf(JavaType type, Map usedNames)(Code)



instanceOf
protected String instanceOf(QName name, String suffix, Map usedNames)(Code)



instanceOf
protected String instanceOf(String name, String suffix, Map usedNames)(Code)
Make a variable name valid and unique.



isValidType
public static boolean isValidType(String type)(Code)
Is @param type valid for MIDP? This assumes CLDC 1.1 (where float and double are okay).



javaTypeToString
protected String javaTypeToString(JavaType type)(Code)



localize
protected String localize(Localizable msg)(Code)



log
protected void log(String msg)(Code)



makeUniq
protected String makeUniq(String name, Map usedNames)(Code)
Make a variable name unique. Puts the name into usedNames.



makeVarName
protected String makeVarName(QName name, String prefix, Map usedNames)(Code)
Try to get a unique and somewhat nice looking name.



onError
protected void onError(Localizable msg)(Code)



onInfo
protected void onInfo(Localizable msg)(Code)



onWarning
protected void onWarning(Localizable msg)(Code)



perform
public void perform(Model model, Configuration config, Properties options)(Code)



setEnvironment
public void setEnvironment(com.sun.xml.rpc.processor.util.ProcessorEnvironment e)(Code)



setFullClassName
protected void setFullClassName(String name)(Code)
Sets the internal state of fullClassName, className, & packageName.
Parameters:
  name - the full class name



setLocalizer
public void setLocalizer(Localizer l)(Code)



writeImports
protected void writeImports() throws IOException(Code)
Here's your chance to import anything.



writeOutGeneratedFile
protected void writeOutGeneratedFile() throws IOException(Code)



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.