Java Doc for ConstantPool.java in  » Database-DBMS » db4o-6.4 » EDU » purdue » cs » bloat » editor » 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 » Database DBMS » db4o 6.4 » EDU.purdue.cs.bloat.editor 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   EDU.purdue.cs.bloat.editor.ConstantPool

ConstantPool
public class ConstantPool (Code)
ConstantPool models constants in the constant pool. Recall that the reflection mechanism represents constants as a tag and a value. ConstantPool consists of an array of reflect.Constants that are resolved into their appropriate value (e.g. Type, NameAndType, MemberRef, etc.) as they are needed.
See Also:   EDU.purdue.cs.bloat.reflect.Constant
author:
   Nate Nystrom (author:
   href="mailto:nystrom@cs.purdue.edu">nystrom@cs.purdue.edu)


Field Summary
 ResizeableArrayListconstants
    
 ResizeableArrayListresolved
    

Constructor Summary
public  ConstantPool(Constant[] c)
     Constructor.
public  ConstantPool()
    

Method Summary
public  intaddConstant(int tag, Object value)
     Add a constant to the constant pool.
public  ObjectconstantAt(int idx)
     Obtain the resolved value of a constant at given index in the constant pool.
Parameters:
  idx - Index into the constant pool.
public  intconstantIndex(int tag, Object value)
     Get the index of the constant with the given tag and value.
Parameters:
  tag - The constant's tag (for example, Constant.UTF8).
Parameters:
  value - The constant's value (for example, a String).
public  intconstantTag(int index)
     Get the tag of a constant.
Parameters:
  index - Index into the constant pool.
public  Constant[]constants()
     Get an array of the constants in the pool.
public  intgetClassIndex(Class c)
    
public  intgetClassIndex(Type type)
     Returns the index of the constant pool entry for the given class.
public  ListgetConstantsList()
     Returns an unmodifiable List of constants in this constant pool.
public  intgetDoubleIndex(Double d)
    
public  intgetFloatIndex(Float f)
    
public  intgetIntegerIndex(Integer i)
    
public  intgetLongIndex(Long l)
    
public  intgetMemberRefIndex(MemberRef ref)
    
public  intgetNameAndTypeIndex(NameAndType nat)
    
public  intgetStringIndex(String s)
    
public  intgetTypeIndex(Type type)
    
public  intgetUTF8Index(String s)
    
public  intnumConstants()
    

Field Detail
constants
ResizeableArrayList constants(Code)



resolved
ResizeableArrayList resolved(Code)




Constructor Detail
ConstantPool
public ConstantPool(Constant[] c)(Code)
Constructor. Resolve the constants in the constant pool, converting from the index-based representation of the class file to a more amenable external representation.
Parameters:
  c - An array of Constant.



ConstantPool
public ConstantPool()(Code)
Creates a new, empty ConstantPool




Method Detail
addConstant
public int addConstant(int tag, Object value)(Code)
Add a constant to the constant pool. Will not add the same constant twice.
Parameters:
  tag - The constant's tag (for example, Constant.UTF8).
Parameters:
  value - The constant's value (for example, a String). The index of the constant.



constantAt
public Object constantAt(int idx)(Code)
Obtain the resolved value of a constant at given index in the constant pool.
Parameters:
  idx - Index into the constant pool. The value of the constant at index.



constantIndex
public int constantIndex(int tag, Object value)(Code)
Get the index of the constant with the given tag and value.
Parameters:
  tag - The constant's tag (for example, Constant.UTF8).
Parameters:
  value - The constant's value (for example, a String). The index of the constant.



constantTag
public int constantTag(int index)(Code)
Get the tag of a constant.
Parameters:
  index - Index into the constant pool. The tag of the constant at index, or Constant.UTF8.



constants
public Constant[] constants()(Code)
Get an array of the constants in the pool. An array of the constants in the pool.



getClassIndex
public int getClassIndex(Class c)(Code)
Returns the index of the constant pool entry for the given class



getClassIndex
public int getClassIndex(Type type)(Code)
Returns the index of the constant pool entry for the given class.



getConstantsList
public List getConstantsList()(Code)
Returns an unmodifiable List of constants in this constant pool.



getDoubleIndex
public int getDoubleIndex(Double d)(Code)
Returns the index of the constant pool entry for the given double



getFloatIndex
public int getFloatIndex(Float f)(Code)
Returns the index of the constant pool entry for the given float



getIntegerIndex
public int getIntegerIndex(Integer i)(Code)
Returns the index of the constant pool entry for the given integer



getLongIndex
public int getLongIndex(Long l)(Code)
Returns the index of the constant pool entry for the given long



getMemberRefIndex
public int getMemberRefIndex(MemberRef ref)(Code)
Returns the index of the constant pool entry for the given MemberRef



getNameAndTypeIndex
public int getNameAndTypeIndex(NameAndType nat)(Code)
Returns the index of the constant pool entry for the given NameAndType



getStringIndex
public int getStringIndex(String s)(Code)
Returns the index of the constant pool entry for the given String



getTypeIndex
public int getTypeIndex(Type type)(Code)
Returns the index of the constant pool entry for the given Type



getUTF8Index
public int getUTF8Index(String s)(Code)
Returns the index of the constant pool entry for the given UTF8 string



numConstants
public int numConstants()(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.