Java Doc for Method.java in  » Scripting » Nice » gnu » bytecode » 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 » Scripting » Nice » gnu.bytecode 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.bytecode.Method

Method
public class Method implements AttrContainer(Code)
Represents a method in a ClassType.

A Method contain a CodeAttr object; the interface for generating bytecode instructions is primarily in CodeAttr.

All the methods whose name start with compile_ are deprecated, and should not be used; use the methods in CodeAttrinstead.



Field Summary
 intaccess_flags
    
public  Type[]arg_types
    
 Attributeattributes
    
 ClassTypeclassfile
    
 CodeAttrcode
    
 ExceptionsAttrexceptions
    
 intname_index
    
 Methodnext
    
public  Typereturn_type
    
 intsignature_index
    

Constructor Summary
 Method(ClassType clfile, int flags)
    

Method Summary
public  voidallocate_local(Variable local)
     Allocate slots for a local variable (or parameter).
 voidassignConstants()
    
public  voidcompile_checkcast(Type type)
    
public  voidcompile_linenumber(String file, int linenumber)
    
public  voidcompile_push_this()
    
public  voidcompile_push_value(Variable var)
    
public  voidcompile_store_value(Variable var)
    
final public  voideraseCode()
    
public  intgetArity()
     Return the number of arguments of this method.
final public  AttributegetAttributes()
    
final public  CodeAttrgetCode()
    
final public  ConstantPoolgetConstants()
    
public  ClassTypegetDeclaringClass()
    
final public  ExceptionsAttrgetExceptionAttr()
    
final public  ClassType[]getExceptions()
    
public  Type[]getFullParameterTypes()
    
public  TypegetFullReturnType()
    
public  intgetModifiers()
    
final public  StringgetName()
    
final public  MethodgetNext()
    
final public  Type[]getParameterTypes()
    
final public  TypegetReturnType()
    
public  StringgetSignature()
    
final public  booleangetStaticFlag()
    
public  TypeVariable[]getTypeParameters()
    
public  voidinitCode()
     Allocate a Code attribute, and prepare to generate code.
public  voidinit_param_slots()
    
 voidinstruction_start_hook(int max_size)
    
final public  booleanisAbstract()
    
final public  booleanisConstructor()
    
 voidkill_local(Variable var)
    
public  voidmaybe_compile_checkcast(Type type)
    
public  ScopepopScope()
    
final  Typepop_stack_type()
    
 voidprepareCode(int max_size)
     Method that must be called before we generate any instructions.
public  ScopepushScope()
    
final  voidpush_stack_type(Type type)
    
public  voidpush_var(Variable var)
     Comple code to push the contents of a local variable onto the statck.
public  booleanreachableHere()
     True if control could reach here.
final public  voidsetAttributes(Attribute attributes)
    
public  voidsetExceptions(short[] exn_indices)
    
public  voidsetExceptions(ClassType[] exn_types)
    
public  voidsetModifiers(int modifiers)
    
final public  voidsetName(String name)
    
final public  voidsetName(int name_index)
    
public  voidsetSignature(String signature)
    
public  voidsetSignature(int signature_index)
    
final public  voidsetStaticFlag(boolean is_static)
    
public  StringtoString()
    
 voidwrite(DataOutputStream dstr, ClassType classfile)
    

Field Detail
access_flags
int access_flags(Code)



arg_types
public Type[] arg_types(Code)



attributes
Attribute attributes(Code)



classfile
ClassType classfile(Code)



code
CodeAttr code(Code)



exceptions
ExceptionsAttr exceptions(Code)



name_index
int name_index(Code)



next
Method next(Code)



return_type
public Type return_type(Code)



signature_index
int signature_index(Code)




Constructor Detail
Method
Method(ClassType clfile, int flags)(Code)




Method Detail
allocate_local
public void allocate_local(Variable local)(Code)
Allocate slots for a local variable (or parameter).
Parameters:
  local - the variable we need to allocate the index of the (first) slot.



assignConstants
void assignConstants()(Code)



compile_checkcast
public void compile_checkcast(Type type)(Code)



compile_linenumber
public void compile_linenumber(String file, int linenumber)(Code)



compile_push_this
public void compile_push_this()(Code)



compile_push_value
public void compile_push_value(Variable var)(Code)



compile_store_value
public void compile_store_value(Variable var)(Code)



eraseCode
final public void eraseCode()(Code)



getArity
public int getArity()(Code)
Return the number of arguments of this method.



getAttributes
final public Attribute getAttributes()(Code)



getCode
final public CodeAttr getCode()(Code)



getConstants
final public ConstantPool getConstants()(Code)



getDeclaringClass
public ClassType getDeclaringClass()(Code)



getExceptionAttr
final public ExceptionsAttr getExceptionAttr()(Code)



getExceptions
final public ClassType[] getExceptions()(Code)



getFullParameterTypes
public Type[] getFullParameterTypes()(Code)



getFullReturnType
public Type getFullReturnType()(Code)



getModifiers
public int getModifiers()(Code)



getName
final public String getName()(Code)



getNext
final public Method getNext()(Code)



getParameterTypes
final public Type[] getParameterTypes()(Code)



getReturnType
final public Type getReturnType()(Code)



getSignature
public String getSignature()(Code)



getStaticFlag
final public boolean getStaticFlag()(Code)



getTypeParameters
public TypeVariable[] getTypeParameters()(Code)



initCode
public void initCode()(Code)
Allocate a Code attribute, and prepare to generate code.



init_param_slots
public void init_param_slots()(Code)



instruction_start_hook
void instruction_start_hook(int max_size)(Code)



isAbstract
final public boolean isAbstract()(Code)



isConstructor
final public boolean isConstructor()(Code)



kill_local
void kill_local(Variable var)(Code)



maybe_compile_checkcast
public void maybe_compile_checkcast(Type type)(Code)



popScope
public Scope popScope()(Code)



pop_stack_type
final Type pop_stack_type()(Code)



prepareCode
void prepareCode(int max_size)(Code)
Method that must be called before we generate any instructions. Set so there is room for at least max_size bytes of code.



pushScope
public Scope pushScope()(Code)



push_stack_type
final void push_stack_type(Type type)(Code)



push_var
public void push_var(Variable var)(Code)
Comple code to push the contents of a local variable onto the statck.
Parameters:
  var - The variable whose contents we want to push.



reachableHere
public boolean reachableHere()(Code)
True if control could reach here.



setAttributes
final public void setAttributes(Attribute attributes)(Code)



setExceptions
public void setExceptions(short[] exn_indices)(Code)



setExceptions
public void setExceptions(ClassType[] exn_types)(Code)



setModifiers
public void setModifiers(int modifiers)(Code)



setName
final public void setName(String name)(Code)



setName
final public void setName(int name_index)(Code)



setSignature
public void setSignature(String signature)(Code)



setSignature
public void setSignature(int signature_index)(Code)



setStaticFlag
final public void setStaticFlag(boolean is_static)(Code)



toString
public String toString()(Code)



write
void write(DataOutputStream dstr, ClassType classfile) throws java.io.IOException(Code)



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.