Java Doc for AsmClassInfo.java in  » Aspect-oriented » aspectwerkz-2.0 » org » codehaus » aspectwerkz » reflect » impl » asm » 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 » Aspect oriented » aspectwerkz 2.0 » org.codehaus.aspectwerkz.reflect.impl.asm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.codehaus.aspectwerkz.reflect.impl.asm.AsmClassInfo

AsmClassInfo
public class AsmClassInfo implements ClassInfo(Code)
Implementation of the ClassInfo interface utilizing the ASM bytecode library for the info retriaval.

Annotations are lazily gathered, unless required to visit them at the same time as we visit methods and fields.

This implementation guarantees that the method, fields and constructors can be retrieved in the same order as they were in the bytecode (it can depends of the compiler and might not be the order of the source code - f.e. IBM compiler)
author:
   Jonas BonŽr
author:
   Alexandre Vasseur


Inner Class :public static class ClassNameRetrievalClassAdapter extends AsmAnnotationHelper.NullClassAdapter
Inner Class :static class MethodParameterNamesCodeAdapter extends AsmAnnotationHelper.NullCodeAdapter

Field Summary
final protected static  ListEMPTY_LIST
    
final protected static  String[]EMPTY_STRING_ARRAY
    

Constructor Summary
 AsmClassInfo(byte[] bytecode, ClassLoader loader, boolean lazyAttributes)
     Creates a new ClassInfo instance.
 AsmClassInfo(InputStream resourceStream, ClassLoader loader)
     Creates a new ClassInfo instance.
 AsmClassInfo(String className, ClassLoader loader, ClassInfo componentInfo)
     Create a ClassInfo based on a component type and a given dimension Due to java.lang.reflect.

Method Summary
public  booleanequals(Object o)
    
public  ListgetAnnotations()
     Returns the annotations infos.
public static  ClassInfogetArrayClassInfo(String className, ClassLoader loader, ClassInfo componentClassInfo)
    
public static  ClassInfogetClassInfo(String className, ClassLoader loader)
     Returns the class info for a specific class.
public static  ClassInfogetClassInfo(byte[] bytecode, ClassLoader loader)
     Returns the class info for a specific class.
public static  ClassInfogetClassInfo(InputStream stream, ClassLoader loader)
     Returns the class info for a specific class.
public static  ClassInfogetClassInfo(InputStream stream, ClassLoader loader, boolean lazyAttributes)
     Returns the class info for a specific class.
public  ClassLoadergetClassLoader()
     Returns the class loader that loaded this class.
public  ClassInfogetComponentType()
     Returns the component type if array type else null.
public  ConstructorInfogetConstructor(int hash)
     Returns a constructor info by its hash.
public  ConstructorInfo[]getConstructors()
     Returns a list with all the constructors info.
public  FieldInfogetField(int hash)
     Returns a field info by its hash.
public  FieldInfo[]getFields()
     Returns a list with all the field info.
public  ClassInfo[]getInterfaces()
     Returns the interfaces.
public  MethodInfogetMethod(int hash)
     Returns a method info by its hash.
public  MethodInfo[]getMethods()
     Returns a list with all the methods info.
public  intgetModifiers()
     Returns the class modifiers.
public  StringgetName()
     Returns the name of the class.
public static  ClassgetPrimitiveClass(String className)
     Checks if the class is a of a primitive type, if so create and return the class for the type else return null.
public  StringgetSignature()
     Returns the signature for the class.
public  ClassInfogetSuperclass()
     Returns the super class.
public  booleanhasStaticInitializer()
     Checks if the class has a static initalizer.
public  inthashCode()
    
public  booleanisArray()
     Is the class an array type.
public  booleanisInterface()
     Is the class an interface.
public  booleanisPrimitive()
     Is the class a primitive type.
public static  voidmarkDirty(String className, ClassLoader loader)
     Marks the class as dirty (since it has been modified and needs to be rebuild).
public static  ClassInfonewClassInfo(byte[] bytecode, ClassLoader loader)
     Returns a completely new class info for a specific class.
public static  StringretrieveClassNameFromBytecode(byte[] bytecode)
     Retrieves the class name from the bytecode of a class.
public  StaticInitializationInfostaticInitializer()
    
public  StringtoString()
    

Field Detail
EMPTY_LIST
final protected static List EMPTY_LIST(Code)



EMPTY_STRING_ARRAY
final protected static String[] EMPTY_STRING_ARRAY(Code)




Constructor Detail
AsmClassInfo
AsmClassInfo(byte[] bytecode, ClassLoader loader, boolean lazyAttributes)(Code)
Creates a new ClassInfo instance.
Parameters:
  bytecode -
Parameters:
  loader -



AsmClassInfo
AsmClassInfo(InputStream resourceStream, ClassLoader loader)(Code)
Creates a new ClassInfo instance.
Parameters:
  resourceStream -
Parameters:
  loader -



AsmClassInfo
AsmClassInfo(String className, ClassLoader loader, ClassInfo componentInfo)(Code)
Create a ClassInfo based on a component type and a given dimension Due to java.lang.reflect. behavior, the ClassInfo is almost empty. It is not an interface, only subclass of java.lang.Object, no methods, fields, or constructor, no annotation.
Parameters:
  className -
Parameters:
  loader -
Parameters:
  componentInfo -




Method Detail
equals
public boolean equals(Object o)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)



getAnnotations
public List getAnnotations()(Code)
Returns the annotations infos. the annotations infos



getArrayClassInfo
public static ClassInfo getArrayClassInfo(String className, ClassLoader loader, ClassInfo componentClassInfo)(Code)
Create a ClassInfo based on a component type which can be himself an array
Parameters:
  className -
Parameters:
  loader -
Parameters:
  componentClassInfo -



getClassInfo
public static ClassInfo getClassInfo(String className, ClassLoader loader)(Code)
Returns the class info for a specific class.
Parameters:
  className -
Parameters:
  loader - the class info



getClassInfo
public static ClassInfo getClassInfo(byte[] bytecode, ClassLoader loader)(Code)
Returns the class info for a specific class.
Parameters:
  bytecode -
Parameters:
  loader - the class info



getClassInfo
public static ClassInfo getClassInfo(InputStream stream, ClassLoader loader)(Code)
Returns the class info for a specific class.
Parameters:
  stream -
Parameters:
  loader - the class info



getClassInfo
public static ClassInfo getClassInfo(InputStream stream, ClassLoader loader, boolean lazyAttributes)(Code)
Returns the class info for a specific class.
Parameters:
  stream -
Parameters:
  loader -
Parameters:
  lazyAttributes - the class info



getClassLoader
public ClassLoader getClassLoader()(Code)
Returns the class loader that loaded this class. the class loader



getComponentType
public ClassInfo getComponentType()(Code)
Returns the component type if array type else null. the component type



getConstructor
public ConstructorInfo getConstructor(int hash)(Code)
Returns a constructor info by its hash.
Parameters:
  hash -



getConstructors
public ConstructorInfo[] getConstructors()(Code)
Returns a list with all the constructors info. the constructors info



getField
public FieldInfo getField(int hash)(Code)
Returns a field info by its hash.
Parameters:
  hash -



getFields
public FieldInfo[] getFields()(Code)
Returns a list with all the field info. the field info



getInterfaces
public ClassInfo[] getInterfaces()(Code)
Returns the interfaces. the interfaces



getMethod
public MethodInfo getMethod(int hash)(Code)
Returns a method info by its hash.
Parameters:
  hash -



getMethods
public MethodInfo[] getMethods()(Code)
Returns a list with all the methods info. the methods info



getModifiers
public int getModifiers()(Code)
Returns the class modifiers. the class modifiers



getName
public String getName()(Code)
Returns the name of the class. the name of the class



getPrimitiveClass
public static Class getPrimitiveClass(String className)(Code)
Checks if the class is a of a primitive type, if so create and return the class for the type else return null.
Parameters:
  className - the class for the primitive type or null



getSignature
public String getSignature()(Code)
Returns the signature for the class. the signature for the class



getSuperclass
public ClassInfo getSuperclass()(Code)
Returns the super class. the super class



hasStaticInitializer
public boolean hasStaticInitializer()(Code)
Checks if the class has a static initalizer.



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



isArray
public boolean isArray()(Code)
Is the class an array type.



isInterface
public boolean isInterface()(Code)
Is the class an interface.



isPrimitive
public boolean isPrimitive()(Code)
Is the class a primitive type.



markDirty
public static void markDirty(String className, ClassLoader loader)(Code)
Marks the class as dirty (since it has been modified and needs to be rebuild).
Parameters:
  className -



newClassInfo
public static ClassInfo newClassInfo(byte[] bytecode, ClassLoader loader)(Code)
Returns a completely new class info for a specific class. Does not cache.
Parameters:
  bytecode -
Parameters:
  loader - the class info



retrieveClassNameFromBytecode
public static String retrieveClassNameFromBytecode(byte[] bytecode)(Code)
Retrieves the class name from the bytecode of a class.
Parameters:
  bytecode - the class name



staticInitializer
public StaticInitializationInfo staticInitializer()(Code)
Return the static initializer info or null if not present
See Also:   org.codehaus.aspectwerkz.reflect.ClassInfo.staticInitializer



toString
public String toString()(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.