Java Doc for Method.java in  » Database-DBMS » db4o-6.4 » EDU » purdue » cs » bloat » file » 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 » Database DBMS » db4o 6.4 » EDU.purdue.cs.bloat.file 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   EDU.purdue.cs.bloat.file.Method

Method
public class Method implements MethodInfo(Code)
Method represents a method in a Java classfile. A method's name and value (the types of its parameters and its return type) are modeled as indices into it class's constant pool. A method has modifiers that determine whether it is public, private, static, final, etc. Methods have a number of attributes such as their Code and any Exceptions they may throw.
See Also:   Code
See Also:   Exceptions
author:
   Nate Nystrom (author:
   href="mailto:nystrom@cs.purdue.edu">nystrom@cs.purdue.edu)


Field Summary
public static  booleanDEBUG
    

Constructor Summary
 Method(ClassInfo classInfo, int modifiers, int name, int type, Attribute[] attrs, Code code, Exceptions exceptions)
    
public  Method(DataInputStream in, ClassInfo classInfo)
     Constructor.

Method Summary
public  Objectclone()
     Creates a clone of this MethodInfo except that its declaring class does not know about it.
public  byte[]code()
     Get the byte code array of the method.
public  intcodeLength()
     Returns the length of the Code array.
public  ClassInfodeclaringClass()
     Get the class which declared the method.
public  Catch[]exceptionHandlers()
     Get the exception handlers in the method.
public  int[]exceptionTypes()
     Get the indices into the constant pool of the types of the exceptions thrown by the method.
public  LineNumberDebugInfo[]lineNumbers()
     Get the line numbers of the instructions in the method.
public  LocalDebugInfo[]locals()
     Get the local variable debug info for the method.
public  intmaxLocals()
     Get the maximum number of locals used in the method.
public  intmaxStack()
     Get the maximum height of the operand stack.
public  intmodifiers()
     Get the modifiers of the method.
public  intnameIndex()
     Get the index into the constant pool of the name of the method.
public  voidsetCode(byte[] bytes)
     Set the byte code array of the method.
public  voidsetExceptionHandlers(Catch[] handlers)
     Set the exception handlers in the method.
public  voidsetLineNumbers(LineNumberDebugInfo[] lineNumbers)
     Set the line numbers of the instructions in the method.
public  voidsetLocals(LocalDebugInfo[] locals)
     Set the local variable debug info for the method.
public  voidsetMaxLocals(int maxLocals)
     Set the maximum number of locals used in the method.
public  voidsetMaxStack(int maxStack)
     Set the maximum height of the operand stack.
public  voidsetModifiers(int modifiers)
     Set the modifiers of the method.
public  voidsetNameIndex(int name)
     Set the index into the constant pool of the name of the method.
public  voidsetTypeIndex(int type)
     Set the index into the constant pool of the type of the method.
public  StringtoString()
     Returns a string representation of the method.
public  inttypeIndex()
     Get the index into the constant pool of the type of the method.
public  voidwrite(DataOutputStream out)
     Write the method to a class file.

Field Detail
DEBUG
public static boolean DEBUG(Code)




Constructor Detail
Method
Method(ClassInfo classInfo, int modifiers, int name, int type, Attribute[] attrs, Code code, Exceptions exceptions)(Code)
Constructor for creating a Method from scratch
Parameters:
  attrs - Must include code and exceptionswhich are themselves attributes of this method



Method
public Method(DataInputStream in, ClassInfo classInfo) throws IOException(Code)
Constructor. Read a method from a class file.
Parameters:
  in - The data stream of the class file.
Parameters:
  classInfo - The class file containing the method.
exception:
  IOException - If an error occurs while reading.




Method Detail
clone
public Object clone()(Code)
Creates a clone of this MethodInfo except that its declaring class does not know about it.



code
public byte[] code()(Code)
Get the byte code array of the method. The byte code array of the method.



codeLength
public int codeLength()(Code)
Returns the length of the Code array.



declaringClass
public ClassInfo declaringClass()(Code)
Get the class which declared the method. The ClassInfo of the class which declared the method.



exceptionHandlers
public Catch[] exceptionHandlers()(Code)
Get the exception handlers in the method. The exception handlers in the method.



exceptionTypes
public int[] exceptionTypes()(Code)
Get the indices into the constant pool of the types of the exceptions thrown by the method. The indices into the constant pool of the types of the exceptionsthrown by the method.



lineNumbers
public LineNumberDebugInfo[] lineNumbers()(Code)
Get the line numbers of the instructions in the method. The line numbers of the instructions in the method.



locals
public LocalDebugInfo[] locals()(Code)
Get the local variable debug info for the method. The local variable debug info for the method.



maxLocals
public int maxLocals()(Code)
Get the maximum number of locals used in the method. The maximum number of locals used in the method.



maxStack
public int maxStack()(Code)
Get the maximum height of the operand stack. The maximum height of the operand stack.



modifiers
public int modifiers()(Code)
Get the modifiers of the method. The values correspond to the constants in the Modifiers class. A bit vector of modifier flags for the method.
See Also:   Modifiers



nameIndex
public int nameIndex()(Code)
Get the index into the constant pool of the name of the method. The index into the constant pool of the name of the method.



setCode
public void setCode(byte[] bytes)(Code)
Set the byte code array of the method.
Parameters:
  bytes - The byte code array of the method.



setExceptionHandlers
public void setExceptionHandlers(Catch[] handlers)(Code)
Set the exception handlers in the method.
Parameters:
  handlers - The exception handlers in the method.



setLineNumbers
public void setLineNumbers(LineNumberDebugInfo[] lineNumbers)(Code)
Set the line numbers of the instructions in the method.
Parameters:
  lineNumbers - The line numbers of the instructions in the method.



setLocals
public void setLocals(LocalDebugInfo[] locals)(Code)
Set the local variable debug info for the method.
Parameters:
  locals - The local variable debug info for the method.



setMaxLocals
public void setMaxLocals(int maxLocals)(Code)
Set the maximum number of locals used in the method.
Parameters:
  maxLocals - The maximum number of locals used in the method.



setMaxStack
public void setMaxStack(int maxStack)(Code)
Set the maximum height of the operand stack.
Parameters:
  maxStack - The maximum height of the operand stack.



setModifiers
public void setModifiers(int modifiers)(Code)
Set the modifiers of the method. The values correspond to the constants in the Modifiers class.
Parameters:
  modifiers - A bit vector of modifier flags for the method.
See Also:   Modifiers



setNameIndex
public void setNameIndex(int name)(Code)
Set the index into the constant pool of the name of the method.
Parameters:
  name - The index into the constant pool of the name of the method.



setTypeIndex
public void setTypeIndex(int type)(Code)
Set the index into the constant pool of the type of the method.
Parameters:
  type - The index into the constant pool of the type of the method.



toString
public String toString()(Code)
Returns a string representation of the method.



typeIndex
public int typeIndex()(Code)
Get the index into the constant pool of the type of the method. The index into the constant pool of the type of the method.



write
public void write(DataOutputStream out) throws IOException(Code)
Write the method to a class file.
Parameters:
  out - The data stream of the class file.
exception:
  IOException - If an error occurs while writing.



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.