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


java.lang.Object
   org.ejb3unit.asm.Label

Label
public class Label (Code)
A label represents a position in the bytecode of a method. Labels are used for jump, goto, and switch instructions, and for try catch blocks.
author:
   Eric Bruneton


Field Summary
final static  intDEBUG
     Indicates if this label is only used for debug attributes.
final static  intJSR
     Indicates if this basic block ends with a JSR instruction.
final static  intPUSHED
     Indicates if this basic block has been pushed in the basic block stack.
final static  intREACHABLE
     Indicates if this label corresponds to a reachable basic block.
final static  intRESIZED
     Indicates if this label has been updated, after instruction resizing.
final static  intRESOLVED
     Indicates if the position of this label is known.
final static  intRET
     Indicates if this basic block ends with a RET instruction.
final static  intSTORE
     Indicates if a stack map frame must be stored for this label.
final static  intTARGET
     Indicates if this label is the target of a jump instruction, or the start of an exception handler.
 Frameframe
     Information about the input and output stack map frames of this basic block.
public  Objectinfo
     Field used to associate user information to a label.
 intinputStackTop
     Start of the output stack relatively to the input stack.
 intline
     The line number corresponding to this label, if known.
 Labelnext
     The next basic block in the basic block stack.
 intoutputStackMax
     Maximum height reached by the output stack, relatively to the top of the input stack.
 intposition
     The position of this label in the code, if known.
 intstatus
     Flags that indicate the status of this label.
 Labelsuccessor
     The successor of this label, in the order they are visited.
 Edgesuccessors
     The successors of this node in the control flow graph.

Constructor Summary
public  Label()
     Constructs a new label.
 Label(boolean debug)
     Constructs a new label.

Method Summary
 LabelgetFirst()
     Returns the first label of the series to which this label belongs.
public  intgetOffset()
     Returns the offset corresponding to this label.
 voidput(MethodWriter owner, ByteVector out, int source, boolean wideOffset)
     Puts a reference to this label in the bytecode of a method.
 booleanresolve(MethodWriter owner, int position, byte[] data)
     Resolves all forward references to this label.
public  StringtoString()
     Returns a string representation of this label.

Field Detail
DEBUG
final static int DEBUG(Code)
Indicates if this label is only used for debug attributes. Such a label is not the start of a basic block, the target of a jump instruction, or an exception handler. It can be safely ignored in control flow graph analysis algorithms (for optimization purposes).



JSR
final static int JSR(Code)
Indicates if this basic block ends with a JSR instruction.



PUSHED
final static int PUSHED(Code)
Indicates if this basic block has been pushed in the basic block stack. See MethodWriter.visitMaxs visitMaxs .



REACHABLE
final static int REACHABLE(Code)
Indicates if this label corresponds to a reachable basic block.



RESIZED
final static int RESIZED(Code)
Indicates if this label has been updated, after instruction resizing.



RESOLVED
final static int RESOLVED(Code)
Indicates if the position of this label is known.



RET
final static int RET(Code)
Indicates if this basic block ends with a RET instruction.



STORE
final static int STORE(Code)
Indicates if a stack map frame must be stored for this label.



TARGET
final static int TARGET(Code)
Indicates if this label is the target of a jump instruction, or the start of an exception handler.



frame
Frame frame(Code)
Information about the input and output stack map frames of this basic block. This field is only used when ClassWriter.COMPUTE_FRAMES option is used.



info
public Object info(Code)
Field used to associate user information to a label.



inputStackTop
int inputStackTop(Code)
Start of the output stack relatively to the input stack. The exact semantics of this field depends on the algorithm that is used. When only the maximum stack size is computed, this field is the number of elements in the input stack. When the stack map frames are completely computed, this field is the offset of the first output stack element relatively to the top of the input stack. This offset is always negative or null. A null offset means that the output stack must be appended to the input stack. A -n offset means that the first n output stack elements must replace the top n input stack elements, and that the other elements must be appended to the input stack.



line
int line(Code)
The line number corresponding to this label, if known.



next
Label next(Code)
The next basic block in the basic block stack. This stack is used in the main loop of the fix point algorithm used in the second step of the control flow analysis algorithms.
See Also:   MethodWriter.visitMaxs



outputStackMax
int outputStackMax(Code)
Maximum height reached by the output stack, relatively to the top of the input stack. This maximum is always positive or null.



position
int position(Code)
The position of this label in the code, if known.



status
int status(Code)
Flags that indicate the status of this label.
See Also:   Label.DEBUG
See Also:   Label.RESOLVED
See Also:   Label.RESIZED
See Also:   Label.PUSHED
See Also:   Label.TARGET
See Also:   Label.STORE
See Also:   Label.REACHABLE
See Also:   Label.JSR
See Also:   Label.RET



successor
Label successor(Code)
The successor of this label, in the order they are visited. This linked list does not include labels used for debug info only. If ClassWriter.COMPUTE_FRAMES option is used then, in addition, it does not contain successive labels that denote the same bytecode position (in this case only the first label appears in this list).



successors
Edge successors(Code)
The successors of this node in the control flow graph. These successors are stored in a linked list of Edge Edge objects, linked to each other by their Edge.next field.




Constructor Detail
Label
public Label()(Code)
Constructs a new label.



Label
Label(boolean debug)(Code)
Constructs a new label.
Parameters:
  debug - if this label is only used for debug attributes.




Method Detail
getFirst
Label getFirst()(Code)
Returns the first label of the series to which this label belongs. For an isolated label or for the first label in a series of successive labels, this method returns the label itself. For other labels it returns the first label of the series. the first label of the series to which this label belongs.



getOffset
public int getOffset()(Code)
Returns the offset corresponding to this label. This offset is computed from the start of the method's bytecode. This method is intended for Attribute sub classes, and is normally not needed by class generators or adapters. the offset corresponding to this label.
throws:
  IllegalStateException - if this label is not resolved yet.



put
void put(MethodWriter owner, ByteVector out, int source, boolean wideOffset)(Code)
Puts a reference to this label in the bytecode of a method. If the position of the label is known, the offset is computed and written directly. Otherwise, a null offset is written and a new forward reference is declared for this label.
Parameters:
  owner - the code writer that calls this method.
Parameters:
  out - the bytecode of the method.
Parameters:
  source - the position of first byte of the bytecode instruction thatcontains this label.
Parameters:
  wideOffset - true if the reference must be stored in 4bytes, or false if it must be stored with 2 bytes.
throws:
  IllegalArgumentException - if this label has not been created bythe given code writer.



resolve
boolean resolve(MethodWriter owner, int position, byte[] data)(Code)
Resolves all forward references to this label. This method must be called when this label is added to the bytecode of the method, i.e. when its position becomes known. This method fills in the blanks that where left in the bytecode by each forward reference previously added to this label.
Parameters:
  owner - the code writer that calls this method.
Parameters:
  position - the position of this label in the bytecode.
Parameters:
  data - the bytecode of the method. true if a blank that was left for this label was tosmall to store the offset. In such a case the corresponding jumpinstruction is replaced with a pseudo instruction (using unusedopcodes) using an unsigned two bytes offset. These pseudoinstructions will need to be replaced with true instructions withwider offsets (4 bytes instead of 2). This is done inMethodWriter.resizeInstructions.
throws:
  IllegalArgumentException - if this label has already been resolved,or if it has not been created by the given code writer.



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



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.