Java Doc for ClassHolder.java in  » Database-DBMS » db-derby-10.2 » org » apache » derby » iapi » services » classfile » 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 » db derby 10.2 » org.apache.derby.iapi.services.classfile 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derby.iapi.services.classfile.ClassHolder

All known Subclasses:   org.apache.derby.iapi.services.classfile.ClassInvestigator,
ClassHolder
public class ClassHolder (Code)
Based upon "THE class FILE FORMAT" chapter of "The Java Virtual Machine Specification" corresponding to version 1.0.2 of the Java Virtual Machine and 1.0.2 of the Java Language Specification. ISBN 0-201-63452-X, September 1996.


Field Summary
protected  intaccess_flags
    
protected  Attributesattribute_info
    
protected  VectorcptEntries
    
protected  HashtablecptHashTable
    
protected  MemberTablefield_info
    
protected  int[]interfaces
    
protected  MemberTablemethod_info
    
protected  intsuper_class
    
protected  intthis_class
    

Constructor Summary
protected  ClassHolder(int estimatedConstantPoolCount)
    
public  ClassHolder(String fullyQualifiedName, String superClassName, int modifiers)
     This will not define a constructor -- it is up to the caller to add at least one.

Method Summary
public  voidaddAttribute(String attributeName, ClassFormatOutput info)
    
public  intaddClassReference(String fullyQualifiedName)
     Add a class entry to the pool.
public  intaddConstant(String value)
    
public  intaddConstant(int value)
    
public  intaddConstant(float value)
    
public  intaddConstant(long value)
    
public  intaddConstant(double value)
    
protected  intaddEntry(Object key, ConstantPoolEntry item)
     Generic add entry to constant pool.
public  intaddFieldReference(String className, String simpleName, String descriptor)
    
public  intaddFieldReference(ClassMember field)
    
public  ClassMemberaddMember(String simpleName, String descriptor, int modifier)
    
public  intaddMethodReference(String className, String simpleName, String descriptor, boolean isInterface)
    
public  intaddUtf8(String value)
    
protected  StringclassName(int classIndex)
     Return the class name for an index to a CONSTANT_Class_info.
public static  StringconvertToInternalClassName(String externalName)
    
public static  StringconvertToInternalDescriptor(String externalName)
    
protected  voidcptPut(ClassFormatOutput out)
    
public  intfindClass(String fullyQualifiedName)
     Find a class descriptor (section 4.4.1) and return its index, returns -1 if not found.
protected  CONSTANT_Index_infofindIndexEntry(int tag, int i1, int i2)
    
protected  intfindIndexIndex(int tag, int i1, int i2)
    
protected  ConstantPoolEntryfindMatchingEntry(Object key)
    
public  intfindNameAndType(String name, String descriptor)
     Find a name and type descriptor (section 4.4.6) and return it's index.
 intfindUtf8(String value)
     Return the index of a UTF entry or -1 if it doesn't exist.
protected  StringgetClassName(int index)
     get the class name of a Class given the index of its CONSTANT_Class_info entry in the Constant Pool.
public  intgetConstantPoolIndex()
    
public  ConstantPoolEntrygetEntry(int index)
    
public  ByteArraygetFileFormat()
     Convert the object representation of the class into its class file format.
public  intgetModifier()
    
public  StringgetName()
    
public  StringgetSuperClassName()
    
public static  booleanisExternalClassName(String className)
    
 StringnameIndexToString(int index)
    

Field Detail
access_flags
protected int access_flags(Code)



attribute_info
protected Attributes attribute_info(Code)



cptEntries
protected Vector cptEntries(Code)



cptHashTable
protected Hashtable cptHashTable(Code)



field_info
protected MemberTable field_info(Code)



interfaces
protected int[] interfaces(Code)



method_info
protected MemberTable method_info(Code)



super_class
protected int super_class(Code)



this_class
protected int this_class(Code)




Constructor Detail
ClassHolder
protected ClassHolder(int estimatedConstantPoolCount)(Code)



ClassHolder
public ClassHolder(String fullyQualifiedName, String superClassName, int modifiers)(Code)
This will not define a constructor -- it is up to the caller to add at least one.




Method Detail
addAttribute
public void addAttribute(String attributeName, ClassFormatOutput info)(Code)



addClassReference
public int addClassReference(String fullyQualifiedName)(Code)
Add a class entry to the pool.



addConstant
public int addConstant(String value)(Code)

See Also:   ClassHolder.addConstant
See Also:   



addConstant
public int addConstant(int value)(Code)

See Also:   ClassHolder.addConstant
See Also:   



addConstant
public int addConstant(float value)(Code)

See Also:   ClassHolder.addConstant
See Also:   



addConstant
public int addConstant(long value)(Code)

See Also:   ClassHolder.addConstant
See Also:   



addConstant
public int addConstant(double value)(Code)

See Also:   ClassHolder.addConstant
See Also:   



addEntry
protected int addEntry(Object key, ConstantPoolEntry item)(Code)
Generic add entry to constant pool. Includes the logic for an entry to occupy more than one slot (e.g. long). The number of slots occupied by the entry..



addFieldReference
public int addFieldReference(String className, String simpleName, String descriptor)(Code)

See Also:   ClassHolder.addFieldReference
See Also:   



addFieldReference
public int addFieldReference(ClassMember field)(Code)



addMember
public ClassMember addMember(String simpleName, String descriptor, int modifier)(Code)

See Also:   ClassHolder.addMember
See Also:   



addMethodReference
public int addMethodReference(String className, String simpleName, String descriptor, boolean isInterface)(Code)

See Also:   ClassHolder.addMethodReference
See Also:   



addUtf8
public int addUtf8(String value)(Code)

See Also:   ClassHolder.addUtf8
See Also:   



className
protected String className(int classIndex)(Code)
Return the class name for an index to a CONSTANT_Class_info.



convertToInternalClassName
public static String convertToInternalClassName(String externalName)(Code)



convertToInternalDescriptor
public static String convertToInternalDescriptor(String externalName)(Code)



cptPut
protected void cptPut(ClassFormatOutput out) throws IOException(Code)



findClass
public int findClass(String fullyQualifiedName)(Code)
Find a class descriptor (section 4.4.1) and return its index, returns -1 if not found.



findIndexEntry
protected CONSTANT_Index_info findIndexEntry(int tag, int i1, int i2)(Code)



findIndexIndex
protected int findIndexIndex(int tag, int i1, int i2)(Code)



findMatchingEntry
protected ConstantPoolEntry findMatchingEntry(Object key)(Code)



findNameAndType
public int findNameAndType(String name, String descriptor)(Code)
Find a name and type descriptor (section 4.4.6) and return it's index.

returns -1 if not found.




findUtf8
int findUtf8(String value)(Code)
Return the index of a UTF entry or -1 if it doesn't exist.



getClassName
protected String getClassName(int index)(Code)
get the class name of a Class given the index of its CONSTANT_Class_info entry in the Constant Pool.



getConstantPoolIndex
public int getConstantPoolIndex()(Code)

See Also:   ClassMember



getEntry
public ConstantPoolEntry getEntry(int index)(Code)



getFileFormat
public ByteArray getFileFormat() throws IOException(Code)
Convert the object representation of the class into its class file format.
exception:
  IOException - error writing the class



getModifier
public int getModifier()(Code)

See Also:   ClassMember



getName
public String getName()(Code)

See Also:   ClassMember



getSuperClassName
public String getSuperClassName()(Code)



isExternalClassName
public static boolean isExternalClassName(String className)(Code)



nameIndexToString
String nameIndexToString(int index)(Code)
get a string (UTF) given a name_index into the constant 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.