Java Doc for CtMember.java in  » Byte-Code » Javassist » javassist » 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 » Byte Code » Javassist » javassist 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javassist.CtMember

All known Subclasses:   javassist.CtField,  javassist.CtBehavior,
CtMember
abstract public class CtMember (Code)
An instance of CtMember represents a field, a constructor, or a method.


Field Summary
protected  CtClassdeclaringClass
    
protected  CtMembernext
    

Constructor Summary
protected  CtMember(CtClass clazz)
    

Method Summary
static  CtMemberappend(CtMember list, CtMember previousTail, CtMember tail)
    
static  CtMemberappend(CtMember list, CtMember tail)
    
static  intcount(CtMember f)
    
abstract protected  voidextendToString(StringBuffer buffer)
     Invoked by CtMember.toString() to add to the buffer and provide the complete value.
abstract public  Object[]getAnnotations()
     Returns the annotations associated with this member. For example, if an annotation @Author is associated with this member, the returned array contains an Author object.
abstract public  byte[]getAttribute(String name)
     Obtains a user-defined attribute with the given name.
abstract public  Object[]getAvailableAnnotations()
     Returns the annotations associated with this member.
public  CtClassgetDeclaringClass()
     Returns the class that declares this member.
abstract public  intgetModifiers()
     Obtains the modifiers of the member.
abstract public  StringgetName()
     Obtains the name of the member.
abstract public  StringgetSignature()
     Returns the character string representing the signature of the member.
static  CtMemberremove(CtMember list, CtMember m)
    
abstract public  voidsetAttribute(String name, byte[] data)
     Adds a user-defined attribute.
abstract public  voidsetModifiers(int mod)
     Sets the encoded modifiers of the member.
public  StringtoString()
    
public  booleanvisibleFrom(CtClass clazz)
     Returns true if this member is accessible from the given class.

Field Detail
declaringClass
protected CtClass declaringClass(Code)



next
protected CtMember next(Code)




Constructor Detail
CtMember
protected CtMember(CtClass clazz)(Code)




Method Detail
append
static CtMember append(CtMember list, CtMember previousTail, CtMember tail)(Code)



append
static CtMember append(CtMember list, CtMember tail)(Code)



count
static int count(CtMember f)(Code)



extendToString
abstract protected void extendToString(StringBuffer buffer)(Code)
Invoked by CtMember.toString() to add to the buffer and provide the complete value. Subclasses should invoke this method, adding a space before each token. The modifiers for the member are provided first; subclasses should provide additional data such as return type, field or method name, etc.



getAnnotations
abstract public Object[] getAnnotations() throws ClassNotFoundException(Code)
Returns the annotations associated with this member. For example, if an annotation @Author is associated with this member, the returned array contains an Author object. The member values can be obtained by calling methods on the Author object. an array of annotation-type objects.
See Also:   CtClass.getAnnotations



getAttribute
abstract public byte[] getAttribute(String name)(Code)
Obtains a user-defined attribute with the given name. If that attribute is not found in the class file, this method returns null.

Note that an attribute is a data block specified by the class file format. See javassist.bytecode.AttributeInfo .
Parameters:
  name - attribute name




getAvailableAnnotations
abstract public Object[] getAvailableAnnotations() throws ClassNotFoundException(Code)
Returns the annotations associated with this member. This method is equivalent to getAnnotations() except that, if any annotations are not on the classpath, they are not included in the returned array. an array of annotation-type objects.
See Also:   CtMember.getAnnotations()
See Also:   CtClass.getAvailableAnnotations
since:
   3.3



getDeclaringClass
public CtClass getDeclaringClass()(Code)
Returns the class that declares this member.



getModifiers
abstract public int getModifiers()(Code)
Obtains the modifiers of the member. modifiers encoded withjavassist.Modifier.
See Also:   Modifier



getName
abstract public String getName()(Code)
Obtains the name of the member.

As for constructor names, see getName() in CtConstructor.
See Also:   CtConstructor.getName




getSignature
abstract public String getSignature()(Code)
Returns the character string representing the signature of the member. If two members have the same signature (parameter types etc.), getSignature() returns the same string.



remove
static CtMember remove(CtMember list, CtMember m)(Code)



setAttribute
abstract public void setAttribute(String name, byte[] data)(Code)
Adds a user-defined attribute. The attribute is saved in the class file.

Note that an attribute is a data block specified by the class file format. See javassist.bytecode.AttributeInfo .
Parameters:
  name - attribute name
Parameters:
  data - attribute value




setModifiers
abstract public void setModifiers(int mod)(Code)
Sets the encoded modifiers of the member.
See Also:   Modifier



toString
public String toString()(Code)



visibleFrom
public boolean visibleFrom(CtClass clazz)(Code)
Returns true if this member is accessible from the given class.



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.