Java Doc for Code.java in  » 6.0-JDK-Modules-com.sun.java » util » com » sun » java » util » jar » pack » 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 » 6.0 JDK Modules com.sun.java » util » com.sun.java.util.jar.pack 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.java.util.jar.pack.Attribute
      com.sun.java.util.jar.pack.Code

Code
class Code extends Attribute.Holder implements Constants(Code)
Represents a chunk of bytecodes.
author:
   John Rose
version:
   1.20, 05/05/07


Field Summary
 byte[]bytes
    
 Fixupsfixups
    
 inthandler_catch
    
 ConstantPool.Entryhandler_class
    
 inthandler_end
    
 inthandler_start
    
 ObjectinsnMap
    
 Class.Methodm
    
 intmax_locals
    
 intmax_stack
    
final static  booleanshrinkMaps
    

Constructor Summary
public  Code(Class.Method m)
    

Method Summary
 voidaddFixups(Collection moreFixups)
    
public  intdecodeBCI(int bciCode)
    
public  intencodeBCI(int bci)
     Encode the given BCI as an instruction boundary number. For completeness, irregular (non-boundary) BCIs are encoded compactly immediately after the boundary numbers. This encoding is the identity mapping outside 0..length, and it is 1-1 everywhere.
public  voidfinishRefs(ConstantPool.Index ix)
    
static  booleanflagsRequireCode(int flags)
    
public  intgetByte(int pc)
    
public  ConstantPool.Entry[]getCPMap()
    
 intgetHandlerCount()
    
 ObjectgetInsnMap()
    
 int[]getInstructionMap()
    
public  intgetInt(int pc)
    
 intgetLength()
    
 intgetMaxNALocals()
    
 intgetMaxStack()
    
public  Class.MethodgetMethod()
    
public  PackagegetPackage()
    
public  intgetShort(int pc)
    
 InstructioninstructionAt(int pc)
    
 voidsetByte(int pc, int x)
    
 voidsetBytes(byte[] bytes)
    
 voidsetHandlerCount(int h)
    
 voidsetInstructionMap(int[] insnMap, int mapLen)
    
 voidsetInstructionMap(int[] insnMap)
    
 voidsetInt(int pc, int x)
    
 voidsetMaxNALocals(int ml)
    
 voidsetMaxStack(int ms)
    
 voidsetShort(int pc, int x)
    
public  ClassthisClass()
    
public  StringtoString()
    
public  voidtrimToSize()
    
protected  voidvisitRefs(int mode, Collection refs)
    

Field Detail
bytes
byte[] bytes(Code)



fixups
Fixups fixups(Code)



handler_catch
int handler_catch(Code)



handler_class
ConstantPool.Entry handler_class(Code)



handler_end
int handler_end(Code)



handler_start
int handler_start(Code)



insnMap
Object insnMap(Code)



m
Class.Method m(Code)



max_locals
int max_locals(Code)



max_stack
int max_stack(Code)



shrinkMaps
final static boolean shrinkMaps(Code)




Constructor Detail
Code
public Code(Class.Method m)(Code)




Method Detail
addFixups
void addFixups(Collection moreFixups)(Code)



decodeBCI
public int decodeBCI(int bciCode)(Code)



encodeBCI
public int encodeBCI(int bci)(Code)
Encode the given BCI as an instruction boundary number. For completeness, irregular (non-boundary) BCIs are encoded compactly immediately after the boundary numbers. This encoding is the identity mapping outside 0..length, and it is 1-1 everywhere. All by itself this technique improved zipped rt.jar compression by 2.6%.



finishRefs
public void finishRefs(ConstantPool.Index ix)(Code)



flagsRequireCode
static boolean flagsRequireCode(int flags)(Code)



getByte
public int getByte(int pc)(Code)



getCPMap
public ConstantPool.Entry[] getCPMap()(Code)



getHandlerCount
int getHandlerCount()(Code)



getInsnMap
Object getInsnMap()(Code)



getInstructionMap
int[] getInstructionMap()(Code)



getInt
public int getInt(int pc)(Code)



getLength
int getLength()(Code)



getMaxNALocals
int getMaxNALocals()(Code)



getMaxStack
int getMaxStack()(Code)



getMethod
public Class.Method getMethod()(Code)



getPackage
public Package getPackage()(Code)



getShort
public int getShort(int pc)(Code)



instructionAt
Instruction instructionAt(int pc)(Code)



setByte
void setByte(int pc, int x)(Code)



setBytes
void setBytes(byte[] bytes)(Code)



setHandlerCount
void setHandlerCount(int h)(Code)



setInstructionMap
void setInstructionMap(int[] insnMap, int mapLen)(Code)



setInstructionMap
void setInstructionMap(int[] insnMap)(Code)



setInt
void setInt(int pc, int x)(Code)



setMaxNALocals
void setMaxNALocals(int ml)(Code)



setMaxStack
void setMaxStack(int ms)(Code)



setShort
void setShort(int pc, int x)(Code)



thisClass
public Class thisClass()(Code)



toString
public String toString()(Code)



trimToSize
public void trimToSize()(Code)



visitRefs
protected void visitRefs(int mode, Collection refs)(Code)



Fields inherited from com.sun.java.util.jar.pack.Attribute
final static byte EF_BACK(Code)(Java Doc)
final static byte EF_DELTA(Code)(Java Doc)
final static byte EF_NULL(Code)(Java Doc)
final static byte EF_SIGN(Code)(Java Doc)
final static byte EK_BCI(Code)(Java Doc)
final static byte EK_BCO(Code)(Java Doc)
final static byte EK_CALL(Code)(Java Doc)
final static byte EK_CASE(Code)(Java Doc)
final static byte EK_CBLE(Code)(Java Doc)
final static byte EK_FLAG(Code)(Java Doc)
final static byte EK_INT(Code)(Java Doc)
final static byte EK_REF(Code)(Java Doc)
final static byte EK_REPL(Code)(Java Doc)
final static byte EK_UN(Code)(Java Doc)
final static int NO_BAND_INDEX(Code)(Java Doc)
byte[] bytes(Code)(Java Doc)
Layout def(Code)(Java Doc)
Object fixups(Code)(Java Doc)

Methods inherited from com.sun.java.util.jar.pack.Attribute
public Attribute addContent(byte[] bytes, Object fixups)(Code)(Java Doc)
public Attribute addContent(byte[] bytes)(Code)(Java Doc)
public byte[] bytes()(Code)(Java Doc)
public int compareTo(Object o)(Code)(Java Doc)
public static String contextName(int ctype)(Code)(Java Doc)
public static Attribute define(Map defs, int ctype, String name, String layout)(Code)(Java Doc)
static String expandCaseDashNotation(String layout)(Code)(Java Doc)
public static Attribute find(int ctype, String name, String layout)(Code)(Java Doc)
static int findCaseDash(String layout, int fromIndex)(Code)(Java Doc)
public void finishRefs(Index ix)(Code)(Java Doc)
public static List getCanonList(List al)(Code)(Java Doc)
public Entry getNameRef()(Code)(Java Doc)
public static Map getStandardDefs()(Code)(Java Doc)
public boolean isCanonical()(Code)(Java Doc)
public static Object keyForLookup(int ctype, String name)(Code)(Java Doc)
public Layout layout()(Code)(Java Doc)
public static Attribute lookup(Map defs, int ctype, String name)(Code)(Java Doc)
static Layout.Element matchCase(Layout.Element e, int value)(Code)(Java Doc)
public String name()(Code)(Java Doc)
public static String normalizeLayoutString(String layout)(Code)(Java Doc)
public void parse(Holder holder, byte[] bytes, int pos, int len, ValueStream out)(Code)(Java Doc)
static int parseIntAfter(String layout, int dash)(Code)(Java Doc)
static int parseIntBefore(String layout, int dash)(Code)(Java Doc)
static int parseUsing(Layout.Element[] elems, Holder holder, byte[] bytes, int pos, int len, ValueStream out)(Code)(Java Doc)
public int size()(Code)(Java Doc)
static String[] splitBodies(String layout)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
static Layout.Element[] tokenizeLayout(Layout self, int curCble, String layout)(Code)(Java Doc)
static void tokenizeLayout(Layout self, int curCble, String layout, ArrayList col)(Code)(Java Doc)
public Object unparse(ValueStream in, ByteArrayOutputStream out)(Code)(Java Doc)
static void unparseUsing(Layout.Element[] elems, Object[] fixups, ValueStream in, ByteArrayOutputStream out)(Code)(Java Doc)
void visitRefs(Holder holder, int mode, Collection refs)(Code)(Java Doc)

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.