Java Doc for ConstantPool.java in  » EJB-Server-resin-3.1.5 » resin » com » caucho » 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 » EJB Server resin 3.1.5 » resin » com.caucho.bytecode 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.caucho.bytecode.ConstantPool

ConstantPool
public class ConstantPool (Code)
Represents a constant pool entry.


Field Summary
final public static  intCP_CLASS
    
final public static  intCP_DOUBLE
    
final public static  intCP_FIELD_REF
    
final public static  intCP_FLOAT
    
final public static  intCP_INTEGER
    
final public static  intCP_INTERFACE_METHOD_REF
    
final public static  intCP_LONG
    
final public static  intCP_METHOD_REF
    
final public static  intCP_NAME_AND_TYPE
    
final public static  intCP_STRING
    
final public static  intCP_UTF8
    

Constructor Summary
 ConstantPool()
    

Method Summary
public  ClassConstantaddClass(String name)
     Adds a class constant.
public  voidaddConstant(ConstantPoolEntry entry)
     Adds a new constant.
public  DoubleConstantaddDouble(double value)
     Adds a double constant.
public  FieldRefConstantaddFieldRef(String className, String name, String type)
     Adds a field ref constant.
public  FloatConstantaddFloat(float value)
     Adds a float constant.
public  IntegerConstantaddInteger(int value)
     Adds a integer constant.
public  InterfaceMethodRefConstantaddInterfaceRef(String className, String name, String type)
     Adds an interface ref constant.
public  LongConstantaddLong(long value)
     Adds a long constant.
public  MethodRefConstantaddMethodRef(String className, String name, String type)
     Adds a method ref constant.
public  NameAndTypeConstantaddNameAndType(String name, String type)
     Adds a name-and-type constant.
public  StringConstantaddString(String name)
     Adds a string constant.
public  Utf8ConstantaddUTF8(String value)
     Adds a UTF-8 constant.
public  ClassConstantgetClass(int index)
    
public  ClassConstantgetClass(String name)
     Gets a class constant.
public  DoubleConstantgetDouble(int index)
    
public  DoubleConstantgetDoubleByValue(double value)
     Gets a double constant.
public  ArrayList<ConstantPoolEntry>getEntries()
     Returns all the entries.
public  ConstantPoolEntrygetEntry(int index)
    
public  FieldRefConstantgetFieldRef(int index)
    
public  FieldRefConstantgetFieldRef(String className, String name, String type)
     Gets a field ref constant.
public  FieldRefConstantgetFieldRef(String name)
     Gets a field ref constant.
public  FloatConstantgetFloat(int index)
    
public  FloatConstantgetFloatByValue(float value)
     Gets a float constant.
public  IntegerConstantgetInteger(int index)
    
public  IntegerConstantgetIntegerByValue(int value)
     Gets a integer constant.
public  InterfaceMethodRefConstantgetInterfaceMethodRef(int index)
    
public  InterfaceMethodRefConstantgetInterfaceRef(String className, String name, String type)
     Gets an interface constant.
public  LongConstantgetLong(int index)
    
public  LongConstantgetLongByValue(long value)
     Gets a long constant.
public  MethodRefConstantgetMethodRef(int index)
    
public  MethodRefConstantgetMethodRef(String className, String name, String type)
     Gets a method ref constant.
public  NameAndTypeConstantgetNameAndType(int index)
    
public  NameAndTypeConstantgetNameAndType(String name, String type)
     Gets a name-and-type constant.
public  StringConstantgetString(int index)
    
public  StringConstantgetString(String name)
     Gets a string constant.
public  Utf8ConstantgetUTF8(String value)
     Gets a UTF-8 constant.
public  Utf8ConstantgetUtf8(int index)
    
public  StringgetUtf8AsString(int index)
    
 voidwrite(ByteCodeWriter out)
     Writes the contents of the pool.

Field Detail
CP_CLASS
final public static int CP_CLASS(Code)



CP_DOUBLE
final public static int CP_DOUBLE(Code)



CP_FIELD_REF
final public static int CP_FIELD_REF(Code)



CP_FLOAT
final public static int CP_FLOAT(Code)



CP_INTEGER
final public static int CP_INTEGER(Code)



CP_INTERFACE_METHOD_REF
final public static int CP_INTERFACE_METHOD_REF(Code)



CP_LONG
final public static int CP_LONG(Code)



CP_METHOD_REF
final public static int CP_METHOD_REF(Code)



CP_NAME_AND_TYPE
final public static int CP_NAME_AND_TYPE(Code)



CP_STRING
final public static int CP_STRING(Code)



CP_UTF8
final public static int CP_UTF8(Code)




Constructor Detail
ConstantPool
ConstantPool()(Code)




Method Detail
addClass
public ClassConstant addClass(String name)(Code)
Adds a class constant.



addConstant
public void addConstant(ConstantPoolEntry entry)(Code)
Adds a new constant.



addDouble
public DoubleConstant addDouble(double value)(Code)
Adds a double constant.



addFieldRef
public FieldRefConstant addFieldRef(String className, String name, String type)(Code)
Adds a field ref constant.



addFloat
public FloatConstant addFloat(float value)(Code)
Adds a float constant.



addInteger
public IntegerConstant addInteger(int value)(Code)
Adds a integer constant.



addInterfaceRef
public InterfaceMethodRefConstant addInterfaceRef(String className, String name, String type)(Code)
Adds an interface ref constant.



addLong
public LongConstant addLong(long value)(Code)
Adds a long constant.



addMethodRef
public MethodRefConstant addMethodRef(String className, String name, String type)(Code)
Adds a method ref constant.



addNameAndType
public NameAndTypeConstant addNameAndType(String name, String type)(Code)
Adds a name-and-type constant.



addString
public StringConstant addString(String name)(Code)
Adds a string constant.



addUTF8
public Utf8Constant addUTF8(String value)(Code)
Adds a UTF-8 constant.



getClass
public ClassConstant getClass(int index)(Code)
Returns a class constant



getClass
public ClassConstant getClass(String name)(Code)
Gets a class constant.



getDouble
public DoubleConstant getDouble(int index)(Code)
Returns a double constant



getDoubleByValue
public DoubleConstant getDoubleByValue(double value)(Code)
Gets a double constant.



getEntries
public ArrayList<ConstantPoolEntry> getEntries()(Code)
Returns all the entries.



getEntry
public ConstantPoolEntry getEntry(int index)(Code)
Returns an entry



getFieldRef
public FieldRefConstant getFieldRef(int index)(Code)
Returns a field ref entry



getFieldRef
public FieldRefConstant getFieldRef(String className, String name, String type)(Code)
Gets a field ref constant.



getFieldRef
public FieldRefConstant getFieldRef(String name)(Code)
Gets a field ref constant.



getFloat
public FloatConstant getFloat(int index)(Code)
Returns a float constant



getFloatByValue
public FloatConstant getFloatByValue(float value)(Code)
Gets a float constant.



getInteger
public IntegerConstant getInteger(int index)(Code)
Returns an integer constant



getIntegerByValue
public IntegerConstant getIntegerByValue(int value)(Code)
Gets a integer constant.



getInterfaceMethodRef
public InterfaceMethodRefConstant getInterfaceMethodRef(int index)(Code)
Returns an interface method ref entry



getInterfaceRef
public InterfaceMethodRefConstant getInterfaceRef(String className, String name, String type)(Code)
Gets an interface constant.



getLong
public LongConstant getLong(int index)(Code)
Returns a long constant



getLongByValue
public LongConstant getLongByValue(long value)(Code)
Gets a long constant.



getMethodRef
public MethodRefConstant getMethodRef(int index)(Code)
Returns a method ref entry



getMethodRef
public MethodRefConstant getMethodRef(String className, String name, String type)(Code)
Gets a method ref constant.



getNameAndType
public NameAndTypeConstant getNameAndType(int index)(Code)
Returns a name-and-type constant



getNameAndType
public NameAndTypeConstant getNameAndType(String name, String type)(Code)
Gets a name-and-type constant.



getString
public StringConstant getString(int index)(Code)
Returns a string constant



getString
public StringConstant getString(String name)(Code)
Gets a string constant.



getUTF8
public Utf8Constant getUTF8(String value)(Code)
Gets a UTF-8 constant.



getUtf8
public Utf8Constant getUtf8(int index)(Code)
Returns a utf-8 constant



getUtf8AsString
public String getUtf8AsString(int index)(Code)
Returns a utf-8 constant as a string



write
void write(ByteCodeWriter out) throws IOException(Code)
Writes the contents of the pool.



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.