Java Doc for SegmentConstantPool.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » pack200 » 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 » Apache Harmony Java SE » org package » org.apache.harmony.pack200 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.pack200.SegmentConstantPool

SegmentConstantPool
public class SegmentConstantPool (Code)


Field Summary
final public static  intALL
    
final public static  intCP_CLASS
    
final public static  intCP_DESCR
    
final public static  intCP_DOUBLE
    
final public static  intCP_FIELD
    
final public static  intCP_FLOAT
    
final public static  intCP_IMETHOD
    
final public static  intCP_INT
    
final public static  intCP_LONG
    
final public static  intCP_METHOD
    
final public static  intCP_STRING
    
final public static  intSIGNATURE
    
final public static  intUTF_8
    

Constructor Summary
public  SegmentConstantPool(CpBands bands)
    

Method Summary
public  ConstantPoolEntrygetClassPoolEntry(String name)
     Given the name of a class, answer the CPClass associated with that class.
public  ConstantPoolEntrygetClassSpecificPoolEntry(int cp, long desiredIndex, String desiredClassName)
     Subset the constant pool of the specified type to be just that which has the specified class name.
public  ConstantPoolEntrygetConstantPoolEntry(int cp, long value)
    
public  ConstantPoolEntry[]getCpAll()
    
public  ConstantPoolEntrygetInitMethodPoolEntry(int cp, long value, String desiredClassName)
     Answer the init method for the specified class.
public  ObjectgetValue(int cp, long value)
    
protected  intmatchSpecificPoolEntryIndex(String[] nameArray, String compareString, int desiredIndex)
     A number of things make use of subsets of structures. In one particular example, _super bytecodes will use a subset of method or field classes which have just those methods / fields defined in the superclass.
protected  intmatchSpecificPoolEntryIndex(String[] primaryArray, String[] secondaryArray, String primaryCompareString, String secondaryCompareRegex, int desiredIndex)
     This method's function is to look through pairs of arrays.

Field Detail
ALL
final public static int ALL(Code)



CP_CLASS
final public static int CP_CLASS(Code)



CP_DESCR
final public static int CP_DESCR(Code)



CP_DOUBLE
final public static int CP_DOUBLE(Code)



CP_FIELD
final public static int CP_FIELD(Code)



CP_FLOAT
final public static int CP_FLOAT(Code)



CP_IMETHOD
final public static int CP_IMETHOD(Code)



CP_INT
final public static int CP_INT(Code)



CP_LONG
final public static int CP_LONG(Code)



CP_METHOD
final public static int CP_METHOD(Code)



CP_STRING
final public static int CP_STRING(Code)



SIGNATURE
final public static int SIGNATURE(Code)



UTF_8
final public static int UTF_8(Code)




Constructor Detail
SegmentConstantPool
public SegmentConstantPool(CpBands bands)(Code)

Parameters:
  bands -




Method Detail
getClassPoolEntry
public ConstantPoolEntry getClassPoolEntry(String name)(Code)
Given the name of a class, answer the CPClass associated with that class. Answer null if the class doesn't exist.
Parameters:
  name - Class name to look for (form: java/lang/Object) CPClass for that class name, or null if not found.



getClassSpecificPoolEntry
public ConstantPoolEntry getClassSpecificPoolEntry(int cp, long desiredIndex, String desiredClassName) throws Pack200Exception(Code)
Subset the constant pool of the specified type to be just that which has the specified class name. Answer the ConstantPoolEntry at the desiredIndex of the subsetted pool.
Parameters:
  cp - type of constant pool array to search
Parameters:
  desiredIndex - index of the constant pool
Parameters:
  desiredClassName - class to use to generate asubset of the pool ConstantPoolEntry
throws:
  Pack200Exception -



getConstantPoolEntry
public ConstantPoolEntry getConstantPoolEntry(int cp, long value) throws Pack200Exception(Code)



getCpAll
public ConstantPoolEntry[] getCpAll() throws Pack200Exception(Code)



getInitMethodPoolEntry
public ConstantPoolEntry getInitMethodPoolEntry(int cp, long value, String desiredClassName) throws Pack200Exception(Code)
Answer the init method for the specified class.
Parameters:
  cp - constant pool to search (must be CP_METHOD)
Parameters:
  value - index of init method
Parameters:
  desiredClassName - String class name of the init method CPMethod init method
throws:
  Pack200Exception -



getValue
public Object getValue(int cp, long value) throws Pack200Exception(Code)



matchSpecificPoolEntryIndex
protected int matchSpecificPoolEntryIndex(String[] nameArray, String compareString, int desiredIndex)(Code)
A number of things make use of subsets of structures. In one particular example, _super bytecodes will use a subset of method or field classes which have just those methods / fields defined in the superclass. Similarly, _this bytecodes use just those methods/fields defined in this class, and _init bytecodes use just those methods that start with . This method takes an array of names, a String to match for, an index and a boolean as parameters, and answers the array position in the array of the indexth element which matches (or equals) the String (depending on the state of the boolean) In other words, if the class array consists of: Object [position 0, 0th instance of Object] String [position 1, 0th instance of String] String [position 2, 1st instance of String] Object [position 3, 1st instance of Object] Object [position 4, 2nd instance of Object] then matchSpecificPoolEntryIndex(..., "Object", 2, false) will answer 4. matchSpecificPoolEntryIndex(..., "String", 0, false) will answer 1.
Parameters:
  nameArray - Array of Strings against which the compareString is tested
Parameters:
  compareString - String for which to search
Parameters:
  desiredIndex - nth element with that match (counting from 0) int index into nameArray, or -1 if not found.



matchSpecificPoolEntryIndex
protected int matchSpecificPoolEntryIndex(String[] primaryArray, String[] secondaryArray, String primaryCompareString, String secondaryCompareRegex, int desiredIndex)(Code)
This method's function is to look through pairs of arrays. It keeps track of the number of hits it finds using the following basis of comparison for a hit: - the primaryArray[index] must be .equals() to the primaryCompareString - the secondaryArray[index] .matches() the secondaryCompareString When the desiredIndex number of hits has been reached, the index into the original two arrays of the element hit is returned.
Parameters:
  primaryArray - The first array to search
Parameters:
  secondaryArray - The second array (must be same .length as primaryArray)
Parameters:
  primaryCompareString - The String to compare against primaryArray using .equals()
Parameters:
  secondaryCompareRegex - The String to compare against secondaryArray using .matches()
Parameters:
  desiredIndex - The nth hit whose position we're seeking int index that represents the position of the nth hit in primaryArray and secondaryArray



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.