Java Doc for ClassItem.java in  » XML » jibx-1.1.5 » org » jibx » binding » classes » 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 » XML » jibx 1.1.5 » org.jibx.binding.classes 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jibx.binding.classes.ClassItem

ClassItem
public class ClassItem (Code)
Wrapper for field or method information. Provides the information needed for access to either existing or added methods in existing classes.
author:
   Dennis M. Sosnoski
version:
   1.0



Constructor Summary
public  ClassItem(String name, ClassFile cf, FieldOrMethod item)
     Constructor.

Method Summary
public static  ClassItemfindStaticMethod(String name, String[] sigs)
     Get static method by fully qualified name.
public static  ClassItemfindVirtualMethod(String name, String[] sigs)
     Get virtual method by fully qualified name.
public  intgetAccessFlags()
     Get access flags.
public  intgetArgumentCount()
     Get number of arguments for method.
public  StringgetArgumentType(int index)
     Get argument type as fully qualified class name.
public  String[]getArgumentTypes()
     Get argument types as array of fully qualified class names.
public  ClassFilegetClassFile()
     Get owning class information.
public  String[]getExceptions()
     Get names of exceptions thrown by method.
public  StringgetGenericsSignature()
     Get the generics signature information for item.
public  StringgetName()
     Get item name.
public  StringgetParameterName(int index)
     Get method parameter name.
public static  String[]getParametersFromSignature(String sig)
     Get parameter type names from method signature.
public static  StringgetPrimitiveSignature(String type)
     Get the signature for a primitive.
public  StringgetSignature()
     Get method signature.
public static  String[]getSignatureVariants(String name)
     Get all variant signatures for a fully qualified class name.
public static  StringgetTypeFromSignature(String sig)
     Get return type names from method signature.
public  StringgetTypeName()
     Get item type as fully qualified class name.
public static  booleanisAssignable(String from, String to)
     Check if a value of one type can be directly assigned to another type.
public  booleanisInitializer()
     Check if item is an initializer.
public  booleanisMethod()
     Check if item is a method.
public static  booleanisPrimitive(String type)
     Check if type name is a primitive.
public  booleanisStatic()
     Check if item is a static.
public  voidmakeAccessible(ClassFile src)
     Make accessible item.
public  voidsetAccessFlags(int flags)
     Set access flags.
public static  TypetypeFromName(String name)
     Create type from name.


Constructor Detail
ClassItem
public ClassItem(String name, ClassFile cf, FieldOrMethod item)(Code)
Constructor. Builds a wrapper for an item based on an existing field or method.
Parameters:
  name - field or method name
Parameters:
  cf - owning class information
Parameters:
  item - field or method information




Method Detail
findStaticMethod
public static ClassItem findStaticMethod(String name, String[] sigs) throws JiBXException(Code)
Get static method by fully qualified name. This splits the class name from the method name, finds the class, and then tries to find a matching method name in that class.
Parameters:
  name - fully qualified class and method name
Parameters:
  sigs - possible method signatures information for the method, or null if not found
throws:
  JiBXException - if configuration error



findVirtualMethod
public static ClassItem findVirtualMethod(String name, String[] sigs) throws JiBXException(Code)
Get virtual method by fully qualified name. This splits the class name from the method name, finds the class, and then tries to find a matching method name in that class or a superclass.
Parameters:
  name - fully qualified class and method name
Parameters:
  sigs - possible method signatures information for the method, or null if not found
throws:
  JiBXException - if configuration error



getAccessFlags
public int getAccessFlags()(Code)
Get access flags. flags for access type of field or method



getArgumentCount
public int getArgumentCount()(Code)
Get number of arguments for method. argument count for method, or zero if not a method



getArgumentType
public String getArgumentType(int index)(Code)
Get argument type as fully qualified class name.
Parameters:
  index - argument number argument type name



getArgumentTypes
public String[] getArgumentTypes()(Code)
Get argument types as array of fully qualified class names. array of argument types



getClassFile
public ClassFile getClassFile()(Code)
Get owning class information. owning class information



getExceptions
public String[] getExceptions()(Code)
Get names of exceptions thrown by method. array of exceptions thrown by method, or null ifa field



getGenericsSignature
public String getGenericsSignature()(Code)
Get the generics signature information for item. generics signature (null if none)



getName
public String getName()(Code)
Get item name. item name



getParameterName
public String getParameterName(int index)(Code)
Get method parameter name. parameter name



getParametersFromSignature
public static String[] getParametersFromSignature(String sig)(Code)
Get parameter type names from method signature.
Parameters:
  sig - method signature to be decoded array of argument type names



getPrimitiveSignature
public static String getPrimitiveSignature(String type)(Code)
Get the signature for a primitive. signature for a primitive type



getSignature
public String getSignature()(Code)
Get method signature. encoded method signature



getSignatureVariants
public static String[] getSignatureVariants(String name) throws JiBXException(Code)
Get all variant signatures for a fully qualified class name. The returned array gives all signatures (for interfaces or classes) which instances of the class can match.
Parameters:
  name - fully qualified class name possible signature variations for instances of the class
throws:
  JiBXException - if configuration error



getTypeFromSignature
public static String getTypeFromSignature(String sig)(Code)
Get return type names from method signature.
Parameters:
  sig - method signature to be decoded return type name



getTypeName
public String getTypeName()(Code)
Get item type as fully qualified class name. item type name



isAssignable
public static boolean isAssignable(String from, String to) throws JiBXException(Code)
Check if a value of one type can be directly assigned to another type. This is basically the equivalent of the instanceof operator, but with application to primitive types as well as object types.
Parameters:
  from - fully qualified class name of initial type
Parameters:
  to - fully qualified class name of assignment type true if assignable, false if not
throws:
  JiBXException - if configuration error



isInitializer
public boolean isInitializer()(Code)
Check if item is an initializer. true if an initializer, false if afield or normal method



isMethod
public boolean isMethod()(Code)
Check if item is a method. true if a method, false if a field



isPrimitive
public static boolean isPrimitive(String type)(Code)
Check if type name is a primitive. true if a primitive, false if not



isStatic
public boolean isStatic()(Code)
Check if item is a static. true if a static, false if member



makeAccessible
public void makeAccessible(ClassFile src) throws JiBXException(Code)
Make accessible item. Check if this field or method is accessible from another class, and if not decreases the access restrictions to make it accessible.
Parameters:
  src - class file for required access
throws:
  JiBXException - if cannot be accessed



setAccessFlags
public void setAccessFlags(int flags)(Code)
Set access flags.
Parameters:
  flags - access flags for field or method



typeFromName
public static Type typeFromName(String name)(Code)
Create type from name.
Parameters:
  name - fully qualified type name corresponding type



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.