Java Doc for Label.java in  » Rule-Engine » drolls-Rule-Engine » org » drools » 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 » Rule Engine » drolls Rule Engine » org.drools.asm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.drools.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
 intbeginStackSize
     The stack size at the beginning of this basic block.
 intline
     The line number corresponding to this label, if known.
 intmaxStackSize
     The (relative) maximum stack size corresponding to this basic block.
 Labelnext
     The next basic block in the basic block stack.
 intposition
     The position of this label in the code, if known.
 booleanpushed
     true if this basic block has been pushed in the basic block stack.
 booleanresized
     If the label position has been updated, after instruction resizing.
 booleanresolved
     Indicates if the position of this label is known.
 Edgesuccessors
     The successors of this node in the control flow graph.

Constructor Summary
public  Label()
     Constructs a new label.

Method Summary
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
beginStackSize
int beginStackSize(Code)
The stack size at the beginning of this basic block. This size is initially unknown. It is computed by the control flow analysis algorithm (see MethodWriter.visitMaxs visitMaxs ).



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



maxStackSize
int maxStackSize(Code)
The (relative) maximum stack size corresponding to this basic block. This size is relative to the stack size at the beginning of the basic block, i.e., the true maximum stack size is equal to Label.beginStackSizebeginStackSize + Label.maxStackSize maxStackSize .



next
Label next(Code)
The next basic block in the basic block stack. See MethodWriter.visitMaxs visitMaxs .



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



pushed
boolean pushed(Code)
true if this basic block has been pushed in the basic block stack. See MethodWriter.visitMaxs visitMaxs .



resized
boolean resized(Code)
If the label position has been updated, after instruction resizing.



resolved
boolean resolved(Code)
Indicates if the position of this label is known.



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.




Method Detail
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.