Java Doc for Attribute.java in  » Profiler » JIP » org » objectweb » asm » jip » 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 » Profiler » JIP » org.objectweb.asm.jip 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.objectweb.asm.jip.Attribute

All known Subclasses:   org.objectweb.asm.jip.attrs.StackMapTableAttribute,  org.objectweb.asm.jip.attrs.StackMapAttribute,
Attribute
public class Attribute (Code)
A non standard class, field, method or code attribute.
author:
   Eric Bruneton
author:
   Eugene Kuleshov


Field Summary
 Attributenext
     The next attribute in this attribute list.
final public  Stringtype
     The type of this attribute.
 byte[]value
     The raw value of this attribute, used only for unknown attributes.

Constructor Summary
protected  Attribute(String type)
     Constructs a new empty attribute.

Method Summary
final  intgetCount()
     Returns the length of the attribute list that begins with this attribute.
protected  Label[]getLabels()
     Returns the labels corresponding to this attribute.
final  intgetSize(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)
     Returns the size of all the attributes in this attribute list.
Parameters:
  cw - the class writer to be used to convert the attributes into bytearrays, with the Attribute.write write method.
Parameters:
  code - the bytecode of the method corresponding to these codeattributes, or null if these attributes are not codeattributes.
Parameters:
  len - the length of the bytecode of the method corresponding tothese code attributes, or null if these attributes arenot code attributes.
Parameters:
  maxStack - the maximum stack size of the method corresponding tothese code attributes, or -1 if these attributes are not codeattributes.
Parameters:
  maxLocals - the maximum number of local variables of the methodcorresponding to these code attributes, or -1 if these attributesare not code attributes.
public  booleanisCodeAttribute()
     Returns true if this type of attribute is a code attribute.
public  booleanisUnknown()
     Returns true if this type of attribute is unknown.
final  voidput(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals, ByteVector out)
     Writes all the attributes of this attribute list in the given byte vector.
protected  Attributeread(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels)
     Reads a Attribute.type type attribute.
protected  ByteVectorwrite(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)
     Returns the byte array form of this attribute.
Parameters:
  cw - the class to which this attribute must be added.

Field Detail
next
Attribute next(Code)
The next attribute in this attribute list. May be null.



type
final public String type(Code)
The type of this attribute.



value
byte[] value(Code)
The raw value of this attribute, used only for unknown attributes.




Constructor Detail
Attribute
protected Attribute(String type)(Code)
Constructs a new empty attribute.
Parameters:
  type - the type of the attribute.




Method Detail
getCount
final int getCount()(Code)
Returns the length of the attribute list that begins with this attribute. the length of the attribute list that begins with this attribute.



getLabels
protected Label[] getLabels()(Code)
Returns the labels corresponding to this attribute. the labels corresponding to this attribute, or null ifthis attribute is not a code attribute that contains labels.



getSize
final int getSize(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)(Code)
Returns the size of all the attributes in this attribute list.
Parameters:
  cw - the class writer to be used to convert the attributes into bytearrays, with the Attribute.write write method.
Parameters:
  code - the bytecode of the method corresponding to these codeattributes, or null if these attributes are not codeattributes.
Parameters:
  len - the length of the bytecode of the method corresponding tothese code attributes, or null if these attributes arenot code attributes.
Parameters:
  maxStack - the maximum stack size of the method corresponding tothese code attributes, or -1 if these attributes are not codeattributes.
Parameters:
  maxLocals - the maximum number of local variables of the methodcorresponding to these code attributes, or -1 if these attributesare not code attributes. the size of all the attributes in this attribute list. This sizeincludes the size of the attribute headers.



isCodeAttribute
public boolean isCodeAttribute()(Code)
Returns true if this type of attribute is a code attribute. true if this type of attribute is a code attribute.



isUnknown
public boolean isUnknown()(Code)
Returns true if this type of attribute is unknown. The default implementation of this method always returns true. true if this type of attribute is unknown.



put
final void put(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals, ByteVector out)(Code)
Writes all the attributes of this attribute list in the given byte vector.
Parameters:
  cw - the class writer to be used to convert the attributes into bytearrays, with the Attribute.write write method.
Parameters:
  code - the bytecode of the method corresponding to these codeattributes, or null if these attributes are not codeattributes.
Parameters:
  len - the length of the bytecode of the method corresponding tothese code attributes, or null if these attributes arenot code attributes.
Parameters:
  maxStack - the maximum stack size of the method corresponding tothese code attributes, or -1 if these attributes are not codeattributes.
Parameters:
  maxLocals - the maximum number of local variables of the methodcorresponding to these code attributes, or -1 if these attributesare not code attributes.
Parameters:
  out - where the attributes must be written.



read
protected Attribute read(ClassReader cr, int off, int len, char[] buf, int codeOff, Label[] labels)(Code)
Reads a Attribute.type type attribute. This method must return a new Attribute object, of type Attribute.type type , corresponding to the len bytes starting at the given offset, in the given class reader.
Parameters:
  cr - the class that contains the attribute to be read.
Parameters:
  off - index of the first byte of the attribute's content in ClassReader.b cr.b. The 6 attribute header bytes, containing thetype and the length of the attribute, are not taken into accounthere.
Parameters:
  len - the length of the attribute's content.
Parameters:
  buf - buffer to be used to callClassReader.readUTF8 readUTF8,ClassReader.readClass(intchar[]) readClass orClassReader.readConst readConst.
Parameters:
  codeOff - index of the first byte of code's attribute content inClassReader.b cr.b, or -1 if the attribute to be read isnot a code attribute. The 6 attribute header bytes, containing thetype and the length of the attribute, are not taken into accounthere.
Parameters:
  labels - the labels of the method's code, or null if theattribute to be read is not a code attribute. a new Attribute object corresponding to the givenbytes.



write
protected ByteVector write(ClassWriter cw, byte[] code, int len, int maxStack, int maxLocals)(Code)
Returns the byte array form of this attribute.
Parameters:
  cw - the class to which this attribute must be added. This parametercan be used to add to the constant pool of this class the itemsthat corresponds to this attribute.
Parameters:
  code - the bytecode of the method corresponding to this codeattribute, or null if this attribute is not a codeattributes.
Parameters:
  len - the length of the bytecode of the method corresponding to thiscode attribute, or null if this attribute is not a codeattribute.
Parameters:
  maxStack - the maximum stack size of the method corresponding tothis code attribute, or -1 if this attribute is not a codeattribute.
Parameters:
  maxLocals - the maximum number of local variables of the methodcorresponding to this code attribute, or -1 if this attribute isnot a code attribute. the byte array form of this attribute.



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.