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


java.lang.Object
   org.ejb3unit.asm.tree.InsnList

InsnList
public class InsnList (Code)
A doubly linked list of AbstractInsnNode objects. This implementation is not thread safe.


Field Summary
public static  booleancheck
     Indicates if preconditions of methods of this class must be checked.


Method Summary
public  voidaccept(MethodVisitor mv)
     Makes the given visitor visit all of the instructions in this list.
public  voidadd(AbstractInsnNode insn)
     Adds the given instruction to the end of this list.
public  voidadd(InsnList insns)
     Adds the given instructions to the end of this list.
public  voidclear()
     Removes all of the instructions of this list.
public  booleancontains(AbstractInsnNode insn)
     Returns true if the given instruction belongs to this list. This method always scans the instructions of this list until it finds the given instruction or reaches the end of the list.
Parameters:
  insn - an instruction.
public  AbstractInsnNodeget(int index)
     Returns the instruction whose index is given.
public  AbstractInsnNodegetFirst()
     Returns the first instruction in this list.
public  AbstractInsnNodegetLast()
     Returns the last instruction in this list.
public  intindexOf(AbstractInsnNode insn)
     Returns the index of the given instruction in this list.
public  voidinsert(AbstractInsnNode insn)
     Inserts the given instruction at the begining of this list.
public  voidinsert(InsnList insns)
     Inserts the given instructions at the begining of this list.
public  voidinsert(AbstractInsnNode location, AbstractInsnNode insn)
     Inserts the given instruction after the specified instruction.
public  voidinsert(AbstractInsnNode location, InsnList insns)
     Inserts the given instructions after the specified instruction.
public  voidinsertBefore(AbstractInsnNode location, AbstractInsnNode insn)
     Inserts the given instruction before the specified instruction.
public  voidinsertBefore(AbstractInsnNode location, InsnList insns)
     Inserts the given instructions before the specified instruction.
public  ListIteratoriterator()
     Returns an iterator over the instructions in this list.
public  ListIteratoriterator(int index)
     Returns an iterator over the instructions in this list.
public  voidremove(AbstractInsnNode insn)
     Removes the given instruction from this list.
public  voidset(AbstractInsnNode location, AbstractInsnNode insn)
     Replaces an instruction of this list with another instruction.
public  intsize()
     Returns the number of instructions in this list.
public  AbstractInsnNode[]toArray()
     Returns an array containing all of the instructions in this list.

Field Detail
check
public static boolean check(Code)
Indicates if preconditions of methods of this class must be checked. Checking preconditions causes the InsnList.indexOf indexOf , InsnList.set set , InsnList.insert(AbstractInsnNode,AbstractInsnNode) , InsnList.insert(AbstractInsnNode,InsnList) , InsnList.remove remove and InsnList.clear methods to execute in O(n) time instead of O(1).





Method Detail
accept
public void accept(MethodVisitor mv)(Code)
Makes the given visitor visit all of the instructions in this list.
Parameters:
  mv - the method visitor that must visit the instructions.



add
public void add(AbstractInsnNode insn)(Code)
Adds the given instruction to the end of this list.
Parameters:
  insn - an instruction, which must not belong to anyInsnList.
throws:
  IllegalArgumentException - if InsnList.check is true,and if insn belongs to an instruction list.



add
public void add(InsnList insns)(Code)
Adds the given instructions to the end of this list.
Parameters:
  insns - an instruction list, which is cleared during the process.
throws:
  IllegalArgumentException - if InsnList.check is true,and if insn == this.



clear
public void clear()(Code)
Removes all of the instructions of this list.



contains
public boolean contains(AbstractInsnNode insn)(Code)
Returns true if the given instruction belongs to this list. This method always scans the instructions of this list until it finds the given instruction or reaches the end of the list.
Parameters:
  insn - an instruction. true if the given instruction belongs to this list.



get
public AbstractInsnNode get(int index)(Code)
Returns the instruction whose index is given. This method builds a cache of the instructions in this list to avoid scanning the whole list each time it is called. Once the cache is built, this method run in constant time. This cache is invalidated by all the methods that modify the list.
Parameters:
  index - the index of the instruction that must be returned. the instruction whose index is given.
throws:
  IndexOutOfBoundsException - if (index < 0 || index >= size()).



getFirst
public AbstractInsnNode getFirst()(Code)
Returns the first instruction in this list. the first instruction in this list, or null if thelist is empty.



getLast
public AbstractInsnNode getLast()(Code)
Returns the last instruction in this list. the last instruction in this list, or null if the listis empty.



indexOf
public int indexOf(AbstractInsnNode insn)(Code)
Returns the index of the given instruction in this list. This method builds a cache of the instruction indexes to avoid scanning the whole list each time it is called. Once the cache is built, this method run in constant time. The cache is invalidated by all the methods that modify the list.
Parameters:
  insn - an instruction of this list. the index of the given instruction in this list. The result ofthis method is undefined if the given instruction does not belongto this list. Use InsnList.contains contains to test if aninstruction belongs to an instruction list or not.
throws:
  IllegalArgumentException - if InsnList.check is true andif insn does not belong to this list.



insert
public void insert(AbstractInsnNode insn)(Code)
Inserts the given instruction at the begining of this list.
Parameters:
  insn - an instruction, which must not belong to anyInsnList.
throws:
  IllegalArgumentException - if InsnList.check is true,and if insn belongs to an instruction list.



insert
public void insert(InsnList insns)(Code)
Inserts the given instructions at the begining of this list.
Parameters:
  insns - an instruction list, which is cleared during the process.
throws:
  IllegalArgumentException - if InsnList.check is true,and if insn == this.



insert
public void insert(AbstractInsnNode location, AbstractInsnNode insn)(Code)
Inserts the given instruction after the specified instruction.
Parameters:
  location - an instruction of this list after which insn must beinserted.
Parameters:
  insn - the instruction to be inserted, which must not belong toany InsnList.
throws:
  IllegalArgumentException - if InsnList.check is true,and if i does not belong to this list or if insn belongs to aninstruction list.



insert
public void insert(AbstractInsnNode location, InsnList insns)(Code)
Inserts the given instructions after the specified instruction.
Parameters:
  location - an instruction of this list after which the instructionsmust be inserted.
Parameters:
  insns - the instruction list to be inserted, which is cleared duringthe process.
throws:
  IllegalArgumentException - if InsnList.check is true,and if i does not belong to this list or if insns == this.



insertBefore
public void insertBefore(AbstractInsnNode location, AbstractInsnNode insn)(Code)
Inserts the given instruction before the specified instruction.
Parameters:
  location - an instruction of this list before which insn must beinserted.
Parameters:
  insn - the instruction to be inserted, which must not belong toany InsnList.
throws:
  IllegalArgumentException - if InsnList.check is true,and if i does not belong to this list or if insn belongs to aninstruction list.



insertBefore
public void insertBefore(AbstractInsnNode location, InsnList insns)(Code)
Inserts the given instructions before the specified instruction.
Parameters:
  location - an instruction of this list before which the instructionsmust be inserted.
Parameters:
  insns - the instruction list to be inserted, which is cleared duringthe process.
throws:
  IllegalArgumentException - if InsnList.check is true,and if i does not belong to this list or if insns == this.



iterator
public ListIterator iterator()(Code)
Returns an iterator over the instructions in this list. an iterator over the instructions in this list.



iterator
public ListIterator iterator(int index)(Code)
Returns an iterator over the instructions in this list. an iterator over the instructions in this list.



remove
public void remove(AbstractInsnNode insn)(Code)
Removes the given instruction from this list.
Parameters:
  insn - the instruction of this list that must be removed.
throws:
  IllegalArgumentException - if InsnList.check is true,and if insn does not belong to this list.



set
public void set(AbstractInsnNode location, AbstractInsnNode insn)(Code)
Replaces an instruction of this list with another instruction.
Parameters:
  location - an instruction of this list.
Parameters:
  insn - another instruction, which must not belong to anyInsnList.
throws:
  IllegalArgumentException - if InsnList.check is true,and if i does not belong to this list or if insn belongs to aninstruction list.



size
public int size()(Code)
Returns the number of instructions in this list. the number of instructions in this list.



toArray
public AbstractInsnNode[] toArray()(Code)
Returns an array containing all of the instructions in this list. an array containing all of the instructions in this list.



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.