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


EDU.purdue.cs.bloat.reflect.ClassInfo

All known Subclasses:   EDU.purdue.cs.bloat.file.ClassFile,
ClassInfo
public interface ClassInfo (Code)
ClassInfo allows a class to be accessed and modified at a very low level. ClassInfo is implemented by file.ClassFile
See Also:   EDU.purdue.cs.bloat.file.ClassFile
author:
   Nate Nystrom (author:
   href="mailto:nystrom@cs.purdue.edu">nystrom@cs.purdue.edu)




Method Summary
public  FieldInfoaddNewField(int modifiers, int typeIndex, int nameIndex)
    
public  FieldInfoaddNewField(int modifiers, int typeIndex, int nameIndex, int cvNameIndex, int constantValueIndex)
    
public  MethodInfoaddNewMethod(int modifiers, int typeIndex, int nameIndex, int exceptionIndex, int[] exceptionTypeIndices, int codeIndex)
     Adds a new method to this class.
public  intclassIndex()
     Get the index into the constant pool of class.
public  voidcommit()
     Commit any changes to the file or to the virtual machine.
public  voidcommitOnly(Set methods, Set fields)
     Commits only certain methods and fields.
Parameters:
  methods - Methods (MethodInfos) to commit.
public  Constant[]constants()
     Returns an array of the constants in the constant pool.
public  voiddeleteField(int nameIndex)
    
public  voiddeleteMethod(int nameIndex, int typeIndex)
    
public  FieldInfo[]fields()
     Get an array of FieldInfo structures for each field in the class.
public  int[]interfaceIndices()
     Get the indices into the constant pool of class's interfaces.
public  ClassInfoLoaderloader()
     Get the class info loader for the class.
public  MethodInfo[]methods()
     Returns an array of MethodInfo structures for each method in the class.
public  intmodifiers()
     Get the modifiers of the class.
public  Stringname()
     Get the name of the class.
public  voidprint(java.io.PrintStream out)
    
public  voidprint(java.io.PrintWriter out)
    
public  voidsetClassIndex(int index)
     Set the index into the constant pool of class.
public  voidsetConstants(Constant[] constants)
     Set all the constants in the constant pool.
public  voidsetInterfaceIndices(int[] indices)
     Set the indices into the constant pool of class's interfaces.
public  voidsetMethods(MethodInfo[] methods)
     Sets the methods in this class.
public  voidsetModifiers(int modifiers)
     Set the modifiers of the class.
public  voidsetSuperclassIndex(int index)
     Set the index into the constant pool of class's superclass.
public  intsuperclassIndex()
     Get the index into the constant pool of class's superclass.
public  StringtoString()
    



Method Detail
addNewField
public FieldInfo addNewField(int modifiers, int typeIndex, int nameIndex)(Code)
Factory method that creates a new field in the class being modeled



addNewField
public FieldInfo addNewField(int modifiers, int typeIndex, int nameIndex, int cvNameIndex, int constantValueIndex)(Code)
Factory method that creates a new field with a constant value in the class being modeled
Parameters:
  cvNameIndex - The index in the class's constant pool for the UTF8 constant"ConstantValue"
Parameters:
  constantValueIndex - The index in the class's constant pool for the constant value



addNewMethod
public MethodInfo addNewMethod(int modifiers, int typeIndex, int nameIndex, int exceptionIndex, int[] exceptionTypeIndices, int codeIndex)(Code)
Adds a new method to this class.
Parameters:
  modifiers - The EDU.purdue.cs.bloat.reflect.Modifiers modifiersfor the new method
Parameters:
  typeIndex - The index of the type (conglomeration of the parameter typesand the return type) for this method in the class's constantpool
Parameters:
  nameIndex - The index of the name of the method in the class's constantpool
Parameters:
  exceptionIndex - The index of the UTF8 string "Exceptions" in the class'sconstant pool
Parameters:
  exceptionTypeIndices - The indices in the class's constant pool of the type of theexceptions thrown by this method
Parameters:
  codeIndex - The index of the UTF8 string "Code" in the class's constantpool



classIndex
public int classIndex()(Code)
Get the index into the constant pool of class. The index of the class.



commit
public void commit()(Code)
Commit any changes to the file or to the virtual machine.



commitOnly
public void commitOnly(Set methods, Set fields)(Code)
Commits only certain methods and fields.
Parameters:
  methods - Methods (MethodInfos) to commit. If null,all methods are committed.
Parameters:
  fields - Fields (FieldInfos) to commit. If null,all fields are committed.



constants
public Constant[] constants()(Code)
Returns an array of the constants in the constant pool.



deleteField
public void deleteField(int nameIndex)(Code)
Deletes a field from this class
Parameters:
  nameIndex - Index in the constant pool of the name of the field to bedeleted
throws:
  IllegalArgumentException - The class modeled by thisClassInfo does not contain a field whose name is atthe given index



deleteMethod
public void deleteMethod(int nameIndex, int typeIndex)(Code)
Deletes a method from this class
Parameters:
  nameIndex - Index in the constant pool of the name of the method to bedeleted
Parameters:
  typeIndex - Index in the constant pool of the type of the method to bedeleted
throws:
  IllegalArgumentException - The class modeled by thisClassInfo does not contain a method whose name andtype are not at the given indices



fields
public FieldInfo[] fields()(Code)
Get an array of FieldInfo structures for each field in the class. An array of FieldInfo structures.
See Also:   FieldInfo



interfaceIndices
public int[] interfaceIndices()(Code)
Get the indices into the constant pool of class's interfaces. The indices of the interfaces.



loader
public ClassInfoLoader loader()(Code)
Get the class info loader for the class. The class info loader.



methods
public MethodInfo[] methods()(Code)
Returns an array of MethodInfo structures for each method in the class.



modifiers
public int modifiers()(Code)
Get the modifiers of the class. The values correspond to the constants in the Modifiers class. A bit vector of modifier flags for the class.
See Also:   Modifiers



name
public String name()(Code)
Get the name of the class. The name of the class.



print
public void print(java.io.PrintStream out)(Code)



print
public void print(java.io.PrintWriter out)(Code)



setClassIndex
public void setClassIndex(int index)(Code)
Set the index into the constant pool of class.
Parameters:
  index - The index of the class.



setConstants
public void setConstants(Constant[] constants)(Code)
Set all the constants in the constant pool.
Parameters:
  constants - The array of Constants.
See Also:   Constant



setInterfaceIndices
public void setInterfaceIndices(int[] indices)(Code)
Set the indices into the constant pool of class's interfaces.
Parameters:
  indices - The indices of the interfaces.



setMethods
public void setMethods(MethodInfo[] methods)(Code)
Sets the methods in this class.



setModifiers
public void setModifiers(int modifiers)(Code)
Set the modifiers of the class. The values correspond to the constants in the Modifiers class.
Parameters:
  modifiers - A bit vector of modifier flags for the class.
See Also:   Modifiers



setSuperclassIndex
public void setSuperclassIndex(int index)(Code)
Set the index into the constant pool of class's superclass.
Parameters:
  index - The index of the superclass.



superclassIndex
public int superclassIndex()(Code)
Get the index into the constant pool of class's superclass. The index of the superclass.



toString
public String toString()(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.