Java Doc for Frame.java in  » Testing » Ejb3Unit » org » ejb3unit » asm » tree » analysis » 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 » Testing » Ejb3Unit » org.ejb3unit.asm.tree.analysis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ejb3unit.asm.tree.analysis.Frame

Frame
public class Frame (Code)
A symbolic execution stack frame. A stack frame contains a set of local variable slots, and an operand stack. Warning: long and double values are represented by two slots in local variables, and by one slot in the operand stack.
author:
   Eric Bruneton



Constructor Summary
public  Frame(int nLocals, int nStack)
     Constructs a new frame with the given size.
public  Frame(Frame src)
     Constructs a new frame that is identical to the given frame.

Method Summary
public  voidclearStack()
     Clears the operand stack of this frame.
public  voidexecute(AbstractInsnNode insn, Interpreter interpreter)
    
public  ValuegetLocal(int i)
     Returns the value of the given local variable.
Parameters:
  i - a local variable index.
public  intgetLocals()
     Returns the maximum number of local variables of this frame.
public  ValuegetStack(int i)
     Returns the value of the given operand stack slot.
Parameters:
  i - the index of an operand stack slot.
public  intgetStackSize()
     Returns the number of values in the operand stack of this frame.
public  Frameinit(Frame src)
     Copies the state of the given frame into this frame.
Parameters:
  src - a frame.
public  booleanmerge(Frame frame, Interpreter interpreter)
     Merges this frame with the given frame.
Parameters:
  frame - a frame.
Parameters:
  interpreter - the interpreter used to merge values.
public  booleanmerge(Frame frame, boolean[] access)
     Merges this frame with the given frame (case of a RET instruction).
Parameters:
  frame - a frame
Parameters:
  access - the local variables that have been accessed by thesubroutine to which the RET instruction corresponds.
public  Valuepop()
     Pops a value from the operand stack of this frame.
public  voidpush(Value value)
     Pushes a value into the operand stack of this frame.
public  voidsetLocal(int i, Value value)
     Sets the value of the given local variable.
public  StringtoString()
     Returns a string representation of this frame.


Constructor Detail
Frame
public Frame(int nLocals, int nStack)(Code)
Constructs a new frame with the given size.
Parameters:
  nLocals - the maximum number of local variables of the frame.
Parameters:
  nStack - the maximum stack size of the frame.



Frame
public Frame(Frame src)(Code)
Constructs a new frame that is identical to the given frame.
Parameters:
  src - a frame.




Method Detail
clearStack
public void clearStack()(Code)
Clears the operand stack of this frame.



execute
public void execute(AbstractInsnNode insn, Interpreter interpreter) throws AnalyzerException(Code)



getLocal
public Value getLocal(int i) throws IndexOutOfBoundsException(Code)
Returns the value of the given local variable.
Parameters:
  i - a local variable index. the value of the given local variable.
throws:
  IndexOutOfBoundsException - if the variable does not exist.



getLocals
public int getLocals()(Code)
Returns the maximum number of local variables of this frame. the maximum number of local variables of this frame.



getStack
public Value getStack(int i) throws IndexOutOfBoundsException(Code)
Returns the value of the given operand stack slot.
Parameters:
  i - the index of an operand stack slot. the value of the given operand stack slot.
throws:
  IndexOutOfBoundsException - if the operand stack slot does notexist.



getStackSize
public int getStackSize()(Code)
Returns the number of values in the operand stack of this frame. Long and double values are treated as single values. the number of values in the operand stack of this frame.



init
public Frame init(Frame src)(Code)
Copies the state of the given frame into this frame.
Parameters:
  src - a frame. this frame.



merge
public boolean merge(Frame frame, Interpreter interpreter) throws AnalyzerException(Code)
Merges this frame with the given frame.
Parameters:
  frame - a frame.
Parameters:
  interpreter - the interpreter used to merge values. true if this frame has been changed as a result of themerge operation, or false otherwise.
throws:
  AnalyzerException - if the frames have incompatible sizes.



merge
public boolean merge(Frame frame, boolean[] access)(Code)
Merges this frame with the given frame (case of a RET instruction).
Parameters:
  frame - a frame
Parameters:
  access - the local variables that have been accessed by thesubroutine to which the RET instruction corresponds. true if this frame has been changed as a result of themerge operation, or false otherwise.



pop
public Value pop() throws IndexOutOfBoundsException(Code)
Pops a value from the operand stack of this frame. the value that has been popped from the stack.
throws:
  IndexOutOfBoundsException - if the operand stack is empty.



push
public void push(Value value) throws IndexOutOfBoundsException(Code)
Pushes a value into the operand stack of this frame.
Parameters:
  value - the value that must be pushed into the stack.
throws:
  IndexOutOfBoundsException - if the operand stack is full.



setLocal
public void setLocal(int i, Value value) throws IndexOutOfBoundsException(Code)
Sets the value of the given local variable.
Parameters:
  i - a local variable index.
Parameters:
  value - the new value of this local variable.
throws:
  IndexOutOfBoundsException - if the variable does not exist.



toString
public String toString()(Code)
Returns a string representation of this frame. a string representation of this frame.



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.