Java Doc for ConstantPool.java in  » Build » ANT » org » apache » tools » ant » taskdefs » optional » depend » constantpool » 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 » Build » ANT » org.apache.tools.ant.taskdefs.optional.depend.constantpool 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.tools.ant.taskdefs.optional.depend.constantpool.ConstantPool

ConstantPool
public class ConstantPool (Code)
The constant pool of a Java class. The constant pool is a collection of constants used in a Java class file. It stores strings, constant values, class names, method names, field names etc.
See Also:    The Java Virtual * Machine Specification



Constructor Summary
public  ConstantPool()
     Initialise the constant pool.

Method Summary
public  intaddEntry(ConstantPoolEntry entry)
     Add an entry to the constant pool.
Parameters:
  entry - the new entry to be added to the constant pool.
public  intgetClassEntry(String className)
     Get the index of a given CONSTANT_CLASS entry in the constant pool.
Parameters:
  className - the name of the class for which the class entryindex is required.
public  intgetConstantEntry(Object constantValue)
     Get the index of a given constant value entry in the constant pool.
Parameters:
  constantValue - the constant value for which the index isrequired.
public  ConstantPoolEntrygetEntry(int index)
     Get an constant pool entry at a particular index.
Parameters:
  index - the index into the constant pool.
public  intgetFieldRefEntry(String fieldClassName, String fieldName, String fieldType)
     Get the index of a given CONSTANT_FIELDREF entry in the constant pool.
Parameters:
  fieldClassName - the name of the class which contains the fieldbeing referenced.
Parameters:
  fieldName - the name of the field being referenced.
Parameters:
  fieldType - the type descriptor of the field being referenced.
public  intgetInterfaceMethodRefEntry(String interfaceMethodClassName, String interfaceMethodName, String interfaceMethodType)
     Get the index of a given CONSTANT_INTERFACEMETHODREF entry in the constant pool.
Parameters:
  interfaceMethodClassName - the name of the interface whichcontains the method being referenced.
Parameters:
  interfaceMethodName - the name of the method being referenced.
Parameters:
  interfaceMethodType - the type descriptor of the method beingreferenced.
public  intgetMethodRefEntry(String methodClassName, String methodName, String methodType)
     Get the index of a given CONSTANT_METHODREF entry in the constant pool.
Parameters:
  methodClassName - the name of the class which contains themethod being referenced.
Parameters:
  methodName - the name of the method being referenced.
Parameters:
  methodType - the type descriptor of the method being referenced.
public  intgetNameAndTypeEntry(String name, String type)
     Get the index of a given CONSTANT_NAMEANDTYPE entry in the constant pool.
public  intgetUTF8Entry(String value)
     Get the index of a given UTF8 constant pool entry.
Parameters:
  value - the string value of the UTF8 entry.
public  voidread(DataInputStream classStream)
     Read the constant pool from a class input stream.
public  voidresolve()
     Resolve the entries in the constant pool.
public  intsize()
     Get the size of the constant pool.
public  StringtoString()
     Dump the constant pool to a string.


Constructor Detail
ConstantPool
public ConstantPool()(Code)
Initialise the constant pool.




Method Detail
addEntry
public int addEntry(ConstantPoolEntry entry)(Code)
Add an entry to the constant pool.
Parameters:
  entry - the new entry to be added to the constant pool. the index into the constant pool at which the entry isstored.



getClassEntry
public int getClassEntry(String className)(Code)
Get the index of a given CONSTANT_CLASS entry in the constant pool.
Parameters:
  className - the name of the class for which the class entryindex is required. the index at which the given class entry occurs in theconstant pool or -1 if the value does not occur.



getConstantEntry
public int getConstantEntry(Object constantValue)(Code)
Get the index of a given constant value entry in the constant pool.
Parameters:
  constantValue - the constant value for which the index isrequired. the index at which the given value entry occurs in theconstant pool or -1 if the value does not occur.



getEntry
public ConstantPoolEntry getEntry(int index)(Code)
Get an constant pool entry at a particular index.
Parameters:
  index - the index into the constant pool. the constant pool entry at that index.



getFieldRefEntry
public int getFieldRefEntry(String fieldClassName, String fieldName, String fieldType)(Code)
Get the index of a given CONSTANT_FIELDREF entry in the constant pool.
Parameters:
  fieldClassName - the name of the class which contains the fieldbeing referenced.
Parameters:
  fieldName - the name of the field being referenced.
Parameters:
  fieldType - the type descriptor of the field being referenced. the index at which the given field ref entry occurs in theconstant pool or -1 if the value does not occur.



getInterfaceMethodRefEntry
public int getInterfaceMethodRefEntry(String interfaceMethodClassName, String interfaceMethodName, String interfaceMethodType)(Code)
Get the index of a given CONSTANT_INTERFACEMETHODREF entry in the constant pool.
Parameters:
  interfaceMethodClassName - the name of the interface whichcontains the method being referenced.
Parameters:
  interfaceMethodName - the name of the method being referenced.
Parameters:
  interfaceMethodType - the type descriptor of the method beingreferenced. the index at which the given method ref entry occurs in theconstant pool or -1 if the value does not occur.



getMethodRefEntry
public int getMethodRefEntry(String methodClassName, String methodName, String methodType)(Code)
Get the index of a given CONSTANT_METHODREF entry in the constant pool.
Parameters:
  methodClassName - the name of the class which contains themethod being referenced.
Parameters:
  methodName - the name of the method being referenced.
Parameters:
  methodType - the type descriptor of the method being referenced. the index at which the given method ref entry occurs in theconstant pool or -1 if the value does not occur.



getNameAndTypeEntry
public int getNameAndTypeEntry(String name, String type)(Code)
Get the index of a given CONSTANT_NAMEANDTYPE entry in the constant pool.
Parameters:
  name - the name
Parameters:
  type - the type the index at which the given NameAndType entry occurs in theconstant pool or -1 if the value does not occur.



getUTF8Entry
public int getUTF8Entry(String value)(Code)
Get the index of a given UTF8 constant pool entry.
Parameters:
  value - the string value of the UTF8 entry. the index at which the given string occurs in the constantpool or -1 if the value does not occur.



read
public void read(DataInputStream classStream) throws IOException(Code)
Read the constant pool from a class input stream.
Parameters:
  classStream - the DataInputStream of a class file.
exception:
  IOException - if there is a problem reading the constant poolfrom the stream



resolve
public void resolve()(Code)
Resolve the entries in the constant pool. Resolution of the constant pool involves transforming indexes to other constant pool entries into the actual data for that entry.



size
public int size()(Code)
Get the size of the constant pool. the size of the constant pool



toString
public String toString()(Code)
Dump the constant pool to a string. the constant pool entries as strings



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)

w_w_w__.___j_a_va_2_s___._co__m___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.