Java Doc for Instruction.java in  » Development » proguard » proguard » classfile » instruction » 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 » Development » proguard » proguard.classfile.instruction 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   proguard.classfile.instruction.Instruction

All known Subclasses:   proguard.classfile.instruction.BranchInstruction,  proguard.classfile.instruction.SwitchInstruction,  proguard.classfile.instruction.ConstantInstruction,  proguard.classfile.instruction.VariableInstruction,  proguard.classfile.instruction.SimpleInstruction,
Instruction
abstract public class Instruction (Code)
Base class for representing instructions.
author:
   Eric Lafortune


Field Summary
public  byteopcode
    


Method Summary
abstract public  voidaccept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)
     Accepts the given visitor.
public  bytecanonicalOpcode()
     Returns the canonical opcode of this instruction, i.e.
public  StringgetName()
     Returns the name of the instruction.
public  booleanisCategory2()
     Returns whether the instruction is a Category 2 instruction.
protected  booleanisWide()
     Returns whether the instruction is wide, index.e.
abstract public  intlength(int offset)
     Returns the length in bytes of the instruction.
protected static  intreadByte(byte[] code, int offset)
    
abstract protected  voidreadInfo(byte[] code, int offset)
     Reads the data following the instruction opcode.
protected static  intreadInt(byte[] code, int offset)
    
protected static  intreadShort(byte[] code, int offset)
    
protected static  intreadSignedByte(byte[] code, int offset)
    
protected static  intreadSignedShort(byte[] code, int offset)
    
protected static  intreadSignedValue(byte[] code, int offset, int valueSize)
    
protected static  intreadValue(byte[] code, int offset, int valueSize)
    
abstract public  Instructionshrink()
     Shrinks this instruction to its shortest possible form.
public  intstackPopCount(Clazz clazz)
     Returns the number of entries popped from the stack during the execution of the instruction.
public  intstackPushCount(Clazz clazz)
     Returns the number of entries pushed onto the stack during the execution of the instruction.
public  StringtoString(int offset)
     Returns a description of the instruction, at the given offset.
final public  voidwrite(CodeAttribute codeAttribute, int offset)
     Writes the Instruction at the given offset in the given code attribute.
final public  voidwrite(byte[] code, int offset)
     Writes the Instruction at the given offset in the given code array.
protected static  voidwriteByte(byte[] code, int offset, int value)
    
abstract protected  voidwriteInfo(byte[] code, int offset)
     Writes data following the instruction opcode.
protected static  voidwriteInt(byte[] code, int offset, int value)
    
protected static  voidwriteShort(byte[] code, int offset, int value)
    
protected static  voidwriteSignedByte(byte[] code, int offset, int value)
    
protected static  voidwriteSignedShort(byte[] code, int offset, int value)
    
protected static  voidwriteSignedValue(byte[] code, int offset, int value, int valueSize)
    
protected static  voidwriteValue(byte[] code, int offset, int value, int valueSize)
    

Field Detail
opcode
public byte opcode(Code)





Method Detail
accept
abstract public void accept(Clazz clazz, Method method, CodeAttribute codeAttribute, int offset, InstructionVisitor instructionVisitor)(Code)
Accepts the given visitor.



canonicalOpcode
public byte canonicalOpcode()(Code)
Returns the canonical opcode of this instruction, i.e. typically the opcode whose extension has been removed.



getName
public String getName()(Code)
Returns the name of the instruction.



isCategory2
public boolean isCategory2()(Code)
Returns whether the instruction is a Category 2 instruction. This means that it operates on long or double arguments.



isWide
protected boolean isWide()(Code)
Returns whether the instruction is wide, index.e. preceded by a wide opcode. With the current specifications, only variable instructions can be wide.



length
abstract public int length(int offset)(Code)
Returns the length in bytes of the instruction.



readByte
protected static int readByte(byte[] code, int offset)(Code)



readInfo
abstract protected void readInfo(byte[] code, int offset)(Code)
Reads the data following the instruction opcode.



readInt
protected static int readInt(byte[] code, int offset)(Code)



readShort
protected static int readShort(byte[] code, int offset)(Code)



readSignedByte
protected static int readSignedByte(byte[] code, int offset)(Code)



readSignedShort
protected static int readSignedShort(byte[] code, int offset)(Code)



readSignedValue
protected static int readSignedValue(byte[] code, int offset, int valueSize)(Code)



readValue
protected static int readValue(byte[] code, int offset, int valueSize)(Code)



shrink
abstract public Instruction shrink()(Code)
Shrinks this instruction to its shortest possible form. this instruction.



stackPopCount
public int stackPopCount(Clazz clazz)(Code)
Returns the number of entries popped from the stack during the execution of the instruction.



stackPushCount
public int stackPushCount(Clazz clazz)(Code)
Returns the number of entries pushed onto the stack during the execution of the instruction.



toString
public String toString(int offset)(Code)
Returns a description of the instruction, at the given offset.



write
final public void write(CodeAttribute codeAttribute, int offset)(Code)
Writes the Instruction at the given offset in the given code attribute.



write
final public void write(byte[] code, int offset)(Code)
Writes the Instruction at the given offset in the given code array.



writeByte
protected static void writeByte(byte[] code, int offset, int value)(Code)



writeInfo
abstract protected void writeInfo(byte[] code, int offset)(Code)
Writes data following the instruction opcode.



writeInt
protected static void writeInt(byte[] code, int offset, int value)(Code)



writeShort
protected static void writeShort(byte[] code, int offset, int value)(Code)



writeSignedByte
protected static void writeSignedByte(byte[] code, int offset, int value)(Code)



writeSignedShort
protected static void writeSignedShort(byte[] code, int offset, int value)(Code)



writeSignedValue
protected static void writeSignedValue(byte[] code, int offset, int value, int valueSize)(Code)



writeValue
protected static void writeValue(byte[] code, int offset, int value, int valueSize)(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.