Java Doc for JavaMethod.java in  » XML-UI » JAXX » jaxx » compiler » 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 » XML UI » JAXX » jaxx.compiler 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jaxx.compiler.JavaMethod

JavaMethod
public class JavaMethod (Code)
Represents a method in a Java source file being generated for output. JavaMethods are created and added to a JavaFile , which can then output Java source code. In addition to normal methods, a JavaMethod can represent a constructor -- constructors should be named after their containing classes and have a return type of null.



Constructor Summary
public  JavaMethod(int modifiers, String returnType, String name)
     Constructs a new no-argument JavaMethod which throws no checked exceptions.
public  JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments)
     Constructs a new JavaMethod which throws no checked exceptions.
public  JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments, String[] exceptions)
     Constructs a new JavaMethod.
public  JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments, String[] exceptions, String bodyCode)
     Constructs a new JavaMethod containing the specified body code.

Method Summary
public  voidappendBodyCode(String extraCode)
     Appends additional code to the method's body.
public  JavaArgument[]getArguments()
     Returns a list of the method's arguments.
public  StringgetBodyCode()
     Returns the Java source code for the method's body.
public  String[]getExceptions()
     Returns a list of exceptions the method can throw.
public  intgetModifiers()
     Returns a bit mask describing the modifier keywords which should appear as part of this method's declaration.
public  StringgetName()
     Returns the method's name.
public  StringgetReturnType()
     Returns the method's return type, as it would be represented in Java source code.
public  StringtoString()
     Returns the Java source code for this method.


Constructor Detail
JavaMethod
public JavaMethod(int modifiers, String returnType, String name)(Code)
Constructs a new no-argument JavaMethod which throws no checked exceptions. The modifiers parameter is a bit mask of the constants from java.lang.reflect.Modifier , and the returnType of the method should be represented as it would appear in Java source code (null for a constructor). The method body is initially empty.
Parameters:
  modifiers - the modifier keywords that should appear as part of the method's declaration
Parameters:
  returnType - the return type of the method as it would appear in Java source code
Parameters:
  name - the method's name
See Also:   JavaMethod.appendBodyCode



JavaMethod
public JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments)(Code)
Constructs a new JavaMethod which throws no checked exceptions. The modifiers parameter is a bit mask of the constants from java.lang.reflect.Modifier , and the returnType of the method should be represented as it would appear in Java source code (null for a constructor). The method body is initially empty.
Parameters:
  modifiers - the modifier keywords that should appear as part of the method's declaration
Parameters:
  returnType - the return type of the method as it would appear in Java source code
Parameters:
  name - the method's name
Parameters:
  arguments - the method's arguments
See Also:   JavaMethod.appendBodyCode



JavaMethod
public JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments, String[] exceptions)(Code)
Constructs a new JavaMethod. The modifiers parameter is a bit mask of the constants from java.lang.reflect.Modifier , and the returnType and exceptions of the method should be represented as they would appear in Java source code (null for a constructor). The method body is initially empty.
Parameters:
  modifiers - the modifier keywords that should appear as part of the method's declaration
Parameters:
  returnType - the return type of the method as it would appear in Java source code
Parameters:
  name - the method's name
Parameters:
  arguments - the method's arguments
Parameters:
  exceptions - a list of exceptions the methods can throw, as they would be represented in Java source code
See Also:   JavaMethod.appendBodyCode



JavaMethod
public JavaMethod(int modifiers, String returnType, String name, JavaArgument[] arguments, String[] exceptions, String bodyCode)(Code)
Constructs a new JavaMethod containing the specified body code. The modifiers parameter is a bit mask of the constants from java.lang.reflect.Modifier , and the returnType and exceptions of the method should be represented as they would appear in Java source code (null for a constructor). The method body is initially empty.
Parameters:
  modifiers - the modifier keywords that should appear as part of the method's declaration
Parameters:
  returnType - the return type of the method as it would appear in Java source code
Parameters:
  name - the method's name
Parameters:
  arguments - the method's arguments
Parameters:
  exceptions - a list of exceptions the methods can throw, as they would be represented in Java source code
Parameters:
  bodyCode - Java source code which should appear in the method body




Method Detail
appendBodyCode
public void appendBodyCode(String extraCode)(Code)
Appends additional code to the method's body.
Parameters:
  extraCode - Java source code to append to the method's body



getArguments
public JavaArgument[] getArguments()(Code)
Returns a list of the method's arguments. the method's arguments



getBodyCode
public String getBodyCode()(Code)
Returns the Java source code for the method's body. the method's body code



getExceptions
public String[] getExceptions()(Code)
Returns a list of exceptions the method can throw. the method's exceptions



getModifiers
public int getModifiers()(Code)
Returns a bit mask describing the modifier keywords which should appear as part of this method's declaration. See java.lang.reflect.Modifier for more information on decoding this field. the modifier bit mask



getName
public String getName()(Code)
Returns the method's name. the method's name



getReturnType
public String getReturnType()(Code)
Returns the method's return type, as it would be represented in Java source code. the method's return type



toString
public String toString()(Code)
Returns the Java source code for this method. the Java source code for this method



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.