Java Doc for ReflectionNavigator.java in  » 6.0-JDK-Modules » jaxb-impl » com » sun » xml » bind » v2 » model » nav » 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 » 6.0 JDK Modules » jaxb impl » com.sun.xml.bind.v2.model.nav 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.xml.bind.v2.model.nav.ReflectionNavigator

ReflectionNavigator
final public class ReflectionNavigator implements Navigator<Type, Class, Field, Method>(Code)
Navigator implementation for java.lang.reflect .



Constructor Summary
 ReflectionNavigator()
     Singleton.

Method Summary
public  ClassasDecl(Type t)
    
public  ClassasDecl(Class c)
    
public  TypecreateParameterizedType(Class rawType, Type... arguments)
     Returns the Type object that represents clazz<T1,T2,T3> .
public  Class<T>erasure(Type t)
     Returns the runtime representation of the given type. This corresponds to the notion of the erasure in JSR-14.

Because of the difference in the way APT and the Java reflection treats primitive type and array type, we can't define this method on Navigator .

It made me realize how difficult it is to define the common navigation layer for two different underlying reflection library.

public  ClassfindClass(String className, Class referencePoint)
    
public  TypegetBaseClass(Type t, Class sup)
    
public  LocationgetClassLocation(Class clazz)
    
public  StringgetClassName(Class clazz)
    
public  StringgetClassShortName(Class clazz)
    
public  TypegetComponentType(Type t)
    
public  FieldgetDeclaredField(Class clazz, String fieldName)
    
public  Collection<? extends Field>getDeclaredFields(Class clazz)
    
public  Collection<? extends Method>getDeclaredMethods(Class clazz)
    
public  ClassgetDeclaringClassForField(Field field)
    
public  ClassgetDeclaringClassForMethod(Method method)
    
public  Field[]getEnumConstants(Class clazz)
    
public  LocationgetFieldLocation(Field field)
    
public  StringgetFieldName(Field field)
    
public  TypegetFieldType(Field field)
    
public  LocationgetMethodLocation(Method method)
    
public  StringgetMethodName(Method method)
    
public  Type[]getMethodParameters(Method method)
    
public  StringgetPackageName(Class clazz)
    
public  TypegetPrimitive(Class primitiveType)
    
public  TypegetReturnType(Method method)
    
public  ClassgetSuperClass(Class clazz)
    
public  TypegetTypeArgument(Type type, int i)
    
public  StringgetTypeName(Type type)
    
public  TypegetVoidType()
    
public  booleanhasDefaultConstructor(Class c)
    
public  booleanisAbstract(Class clazz)
    
public  booleanisArray(Type t)
    
public  booleanisArrayButNotByteArray(Type t)
    
public  booleanisBridgeMethod(Method method)
    
public  booleanisEnum(Class c)
    
public  booleanisFinal(Class clazz)
    
public  booleanisInnerClass(Class clazz)
    
public  booleanisInterface(Class clazz)
    
public  booleanisOverriding(Method method, Class base)
    
public  booleanisParameterizedType(Type type)
    
public  booleanisPrimitive(Type type)
    
public  booleanisPublicField(Field field)
    
public  booleanisPublicMethod(Method method)
    
public  booleanisStaticField(Field field)
    
public  booleanisStaticMethod(Method method)
    
public  booleanisSubClassOf(Type sub, Type sup)
    
public  booleanisTransient(Field f)
    
public  Classref(Class c)
    
public  Classuse(Class c)
    


Constructor Detail
ReflectionNavigator
ReflectionNavigator()(Code)
Singleton. Use Navigator.REFLECTION




Method Detail
asDecl
public Class asDecl(Type t)(Code)



asDecl
public Class asDecl(Class c)(Code)



createParameterizedType
public Type createParameterizedType(Class rawType, Type... arguments)(Code)
Returns the Type object that represents clazz<T1,T2,T3> .



erasure
public Class<T> erasure(Type t)(Code)
Returns the runtime representation of the given type. This corresponds to the notion of the erasure in JSR-14.

Because of the difference in the way APT and the Java reflection treats primitive type and array type, we can't define this method on Navigator .

It made me realize how difficult it is to define the common navigation layer for two different underlying reflection library. The other way is to throw away the entire parameterization and go to the wrapper approach.




findClass
public Class findClass(String className, Class referencePoint)(Code)



getBaseClass
public Type getBaseClass(Type t, Class sup)(Code)



getClassLocation
public Location getClassLocation(Class clazz)(Code)



getClassName
public String getClassName(Class clazz)(Code)



getClassShortName
public String getClassShortName(Class clazz)(Code)



getComponentType
public Type getComponentType(Type t)(Code)



getDeclaredField
public Field getDeclaredField(Class clazz, String fieldName)(Code)



getDeclaredFields
public Collection<? extends Field> getDeclaredFields(Class clazz)(Code)



getDeclaredMethods
public Collection<? extends Method> getDeclaredMethods(Class clazz)(Code)



getDeclaringClassForField
public Class getDeclaringClassForField(Field field)(Code)



getDeclaringClassForMethod
public Class getDeclaringClassForMethod(Method method)(Code)



getEnumConstants
public Field[] getEnumConstants(Class clazz)(Code)



getFieldLocation
public Location getFieldLocation(Field field)(Code)



getFieldName
public String getFieldName(Field field)(Code)



getFieldType
public Type getFieldType(Field field)(Code)



getMethodLocation
public Location getMethodLocation(Method method)(Code)



getMethodName
public String getMethodName(Method method)(Code)



getMethodParameters
public Type[] getMethodParameters(Method method)(Code)



getPackageName
public String getPackageName(Class clazz)(Code)



getPrimitive
public Type getPrimitive(Class primitiveType)(Code)



getReturnType
public Type getReturnType(Method method)(Code)



getSuperClass
public Class getSuperClass(Class clazz)(Code)



getTypeArgument
public Type getTypeArgument(Type type, int i)(Code)



getTypeName
public String getTypeName(Type type)(Code)



getVoidType
public Type getVoidType()(Code)



hasDefaultConstructor
public boolean hasDefaultConstructor(Class c)(Code)



isAbstract
public boolean isAbstract(Class clazz)(Code)



isArray
public boolean isArray(Type t)(Code)



isArrayButNotByteArray
public boolean isArrayButNotByteArray(Type t)(Code)



isBridgeMethod
public boolean isBridgeMethod(Method method)(Code)



isEnum
public boolean isEnum(Class c)(Code)



isFinal
public boolean isFinal(Class clazz)(Code)



isInnerClass
public boolean isInnerClass(Class clazz)(Code)



isInterface
public boolean isInterface(Class clazz)(Code)



isOverriding
public boolean isOverriding(Method method, Class base)(Code)



isParameterizedType
public boolean isParameterizedType(Type type)(Code)



isPrimitive
public boolean isPrimitive(Type type)(Code)



isPublicField
public boolean isPublicField(Field field)(Code)



isPublicMethod
public boolean isPublicMethod(Method method)(Code)



isStaticField
public boolean isStaticField(Field field)(Code)



isStaticMethod
public boolean isStaticMethod(Method method)(Code)



isSubClassOf
public boolean isSubClassOf(Type sub, Type sup)(Code)



isTransient
public boolean isTransient(Field f)(Code)



ref
public Class ref(Class c)(Code)



use
public Class use(Class c)(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)

w___w___w__._j__a___va_2s___._co__m | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.