Java Doc for ConstantPool.java in  » Scripting » Kawa » gnu » bytecode » 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 » Scripting » Kawa » gnu.bytecode 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gnu.bytecode.ConstantPool

ConstantPool
public class ConstantPool (Code)
Manages a pool of constants, as used in .class files and Java interpreters.
author:
   Per Bothner


Field Summary
final public static  byteCLASS
    
final public static  byteDOUBLE
    
final public static  byteFIELDREF
    
final public static  byteFLOAT
    
final public static  byteINTEGER
    
final public static  byteINTERFACE_METHODREF
    
final public static  byteLONG
    
final public static  byteMETHODREF
    
final public static  byteNAME_AND_TYPE
    
final public static  byteSTRING
    
final public static  byteUTF8
    
 intcount
     Number of elements in the constant pool, not counting the initial dummy element (with index 0).
 CpoolEntry[]hashTab
    
 booleanlocked
    
 CpoolEntry[]pool
     The entries in the constant pool. The first element (constant_pool[0]) is an unused dummy.

Constructor Summary
public  ConstantPool()
    
public  ConstantPool(java.io.DataInputStream dstr)
    

Method Summary
public  CpoolClassaddClass(ObjectType otype)
    
public  CpoolClassaddClass(String name)
    
public  CpoolClassaddClass(CpoolUtf8 name)
    
public  CpoolValue2addDouble(double val)
    
public  CpoolRefaddFieldRef(Field field)
    
public  CpoolValue1addFloat(float val)
    
public  CpoolValue1addInt(int val)
    
public  CpoolValue2addLong(long val)
    
public  CpoolRefaddMethodRef(Method method)
    
public  CpoolNameAndTypeaddNameAndType(Method method)
    
public  CpoolNameAndTypeaddNameAndType(Field field)
    
public  CpoolNameAndTypeaddNameAndType(CpoolUtf8 name, CpoolUtf8 type)
    
public  CpoolRefaddRef(int tag, CpoolClass clas, CpoolNameAndType nameAndType)
    
final public  CpoolStringaddString(String string)
    
public  CpoolStringaddString(CpoolUtf8 str)
    
public  CpoolUtf8addUtf8(String s)
    
 CpoolValue1addValue1(int tag, int val)
    
 CpoolValue2addValue2(int tag, long val)
    
final public  intgetCount()
    
 CpoolEntrygetForced(int index, int tag)
     Get or create a CpoolEntry at a given index.
final public  CpoolEntrygetPoolEntry(int index)
     Get the index'th entry in pool.
 voidrehash()
    
 voidwrite(java.io.DataOutputStream dstr)
    

Field Detail
CLASS
final public static byte CLASS(Code)



DOUBLE
final public static byte DOUBLE(Code)



FIELDREF
final public static byte FIELDREF(Code)



FLOAT
final public static byte FLOAT(Code)



INTEGER
final public static byte INTEGER(Code)



INTERFACE_METHODREF
final public static byte INTERFACE_METHODREF(Code)



LONG
final public static byte LONG(Code)



METHODREF
final public static byte METHODREF(Code)



NAME_AND_TYPE
final public static byte NAME_AND_TYPE(Code)



STRING
final public static byte STRING(Code)



UTF8
final public static byte UTF8(Code)



count
int count(Code)
Number of elements in the constant pool, not counting the initial dummy element (with index 0).



hashTab
CpoolEntry[] hashTab(Code)



locked
boolean locked(Code)



pool
CpoolEntry[] pool(Code)
The entries in the constant pool. The first element (constant_pool[0]) is an unused dummy.




Constructor Detail
ConstantPool
public ConstantPool()(Code)



ConstantPool
public ConstantPool(java.io.DataInputStream dstr) throws java.io.IOException(Code)




Method Detail
addClass
public CpoolClass addClass(ObjectType otype)(Code)



addClass
public CpoolClass addClass(String name)(Code)



addClass
public CpoolClass addClass(CpoolUtf8 name)(Code)



addDouble
public CpoolValue2 addDouble(double val)(Code)



addFieldRef
public CpoolRef addFieldRef(Field field)(Code)



addFloat
public CpoolValue1 addFloat(float val)(Code)



addInt
public CpoolValue1 addInt(int val)(Code)



addLong
public CpoolValue2 addLong(long val)(Code)



addMethodRef
public CpoolRef addMethodRef(Method method)(Code)



addNameAndType
public CpoolNameAndType addNameAndType(Method method)(Code)



addNameAndType
public CpoolNameAndType addNameAndType(Field field)(Code)



addNameAndType
public CpoolNameAndType addNameAndType(CpoolUtf8 name, CpoolUtf8 type)(Code)



addRef
public CpoolRef addRef(int tag, CpoolClass clas, CpoolNameAndType nameAndType)(Code)



addString
final public CpoolString addString(String string)(Code)



addString
public CpoolString addString(CpoolUtf8 str)(Code)



addUtf8
public CpoolUtf8 addUtf8(String s)(Code)



addValue1
CpoolValue1 addValue1(int tag, int val)(Code)



addValue2
CpoolValue2 addValue2(int tag, long val)(Code)



getCount
final public int getCount()(Code)



getForced
CpoolEntry getForced(int index, int tag)(Code)
Get or create a CpoolEntry at a given index. If there is an existing entry, it must match the tag. If not, a new one is create of the class appropriate for the tag.



getPoolEntry
final public CpoolEntry getPoolEntry(int index)(Code)
Get the index'th entry in pool. Will throw ArrayIndexOutOfBoundsException on an invalid index



rehash
void rehash()(Code)



write
void write(java.io.DataOutputStream dstr) throws java.io.IOException(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.