Java Doc for ClassInfo.java in  » IDE-Netbeans » cvsclient » org » netbeans » lib » profiler » classfile » 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 » IDE Netbeans » cvsclient » org.netbeans.lib.profiler.classfile 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.lib.profiler.classfile.BaseClassInfo
      org.netbeans.lib.profiler.classfile.ClassInfo

All known Subclasses:   org.netbeans.lib.profiler.classfile.DynamicClassInfo,
ClassInfo
abstract public class ClassInfo extends BaseClassInfo implements JavaClassConstants,CommonConstants(Code)
A representation of a binary Java class, that is relatively compact - it does not contain method bodies, and contains only a subset of information from the constant pool. Method bodies (or, more precisely, byte arrays representing either full MethodInfos as defined in JVM Specification, or just method bodies), can be obtained individually on demand. This class is abstract, since it contains a single abstract method that actually returns the class file bytes for the whole class. Concrete subclasses of this class may choose to simply store this byte array, or retrieve it e.g. from disk on demand.
author:
   Misha Dmitirev

Inner Class :public static class LineNumberTables

Field Summary
 characcessFlags
    
 intattrsStartOfs
    
 char[]cpoolRefsToClassIdx
    
 String[]cpoolRefsToClassName
    
 String[][]cpoolRefsToMethodClassNameAndSig
    
 char[]cpoolRefsToMethodIdx
    
 intcpoolStartOfs
    
 int[]exceptionTableStartOffsets
    
 intfieldsStartOfs
    
 String[]interfaces
    
 intintermediateDataStartOfs
    
 shortlineNumberTablesInitStatus
    
 char[]lineNumberTablesLengths
    
 int[]lineNumberTablesOffsets
    
 char[]methodAccessFlags
    
 char[]methodBytecodesLengths
    
 int[]methodBytecodesOffsets
    
 int[]methodInfoLengths
    
 int[]methodInfoOffsets
    
 String[]methodNames
    
 String[]methodSignatures
    
 intmethodsStartOfs
    
 String[]nestedClassNames
    
 intorigCPoolCount
    
 StringpackageName
    
 StringsuperName
    

Constructor Summary
protected  ClassInfo(String className, int loaderId)
    
 ClassInfo(byte[] buf)
     This constructor is used for creation of temporary instances of ClassInfo, typically to just find out something about class contained in a given .class file.

Method Summary
public  intbciForMethodAndLineNo(int methodIdx, int lineNo)
    
public  intcheckIfAtGoTo(int methodIdx, int bci)
     Check if the given method's opcode at bci is goto.
public  booleancontainsMethod(String name, String sig)
    
public static  intfindPreviousBCI(byte[] codeBytes, int bci)
    
abstract protected  byte[]getClassFileBytes()
     Returns the class file bytes for this class.
public  intgetExceptionTableStartOffsetInMethodInfo(int i)
    
public  String[]getInterfaceNames()
    
public  LineNumberTablesgetLineNumberTables()
    
public  byte[]getMethodBytecode(int i)
    
public  intgetMethodBytecodeOffsetInMethodInfo(int i)
    
public  intgetMethodBytecodesLength(int i)
    
public  intgetMethodIndex(String name, String sig)
    
public  byte[]getMethodInfo(int i)
    
public  intgetMethodInfoLength(int i)
    
public  StringgetMethodName(int i)
    
public  String[]getMethodNames()
    
public  StringgetMethodSignature(int i)
    
public  String[]getMethodSignatures()
    
public  int[]getMinAndMaxLinesForMethod(int methodIdx)
    
public  String[]getNestedClassNames()
    
public  intgetOrigAttrsStartOfs()
    
public  intgetOrigCPoolCount()
    
public  intgetOrigCPoolStartOfs()
    
public  intgetOrigFieldsStartOfs()
    
public  intgetOrigIntermediateDataStartOfs()
    
public  intgetOrigMethodsStartOfs()
    
protected static  StringgetPackageName(String clazzName)
     Returns package name for the given class.
public  StringgetRefClassName(int refClassIdx)
    
public  String[]getRefMethodsClassNameAndSig(int refMethodIdx)
    
public  StringgetSuperclassName()
    
public  booleanisAbstract()
    
public  booleanisInterface()
    
public  booleanisMethodAbstract(int i)
    
public  booleanisMethodFinal(int i)
    
public  booleanisMethodNative(int i)
    
public  booleanisMethodPrivate(int i)
    
public  booleanisMethodProtected(int i)
    
public  booleanisMethodPublic(int i)
    
public  booleanisMethodStatic(int i)
    
public  intlineNoForMethodAndBci(int methodIdx, int bci)
    
public  int[]methodIdxAndBestBCIForLineNo(int lineNo)
     Returns a {method idx, best BCI} pair for the given source line number in this class.
public  intoverridesVirtualMethod(ClassInfo superClass, int superMethodIdx)
    

Field Detail
accessFlags
char accessFlags(Code)



attrsStartOfs
int attrsStartOfs(Code)



cpoolRefsToClassIdx
char[] cpoolRefsToClassIdx(Code)



cpoolRefsToClassName
String[] cpoolRefsToClassName(Code)



cpoolRefsToMethodClassNameAndSig
String[][] cpoolRefsToMethodClassNameAndSig(Code)



cpoolRefsToMethodIdx
char[] cpoolRefsToMethodIdx(Code)



cpoolStartOfs
int cpoolStartOfs(Code)



exceptionTableStartOffsets
int[] exceptionTableStartOffsets(Code)



fieldsStartOfs
int fieldsStartOfs(Code)



interfaces
String[] interfaces(Code)



intermediateDataStartOfs
int intermediateDataStartOfs(Code)



lineNumberTablesInitStatus
short lineNumberTablesInitStatus(Code)



lineNumberTablesLengths
char[] lineNumberTablesLengths(Code)



lineNumberTablesOffsets
int[] lineNumberTablesOffsets(Code)



methodAccessFlags
char[] methodAccessFlags(Code)



methodBytecodesLengths
char[] methodBytecodesLengths(Code)



methodBytecodesOffsets
int[] methodBytecodesOffsets(Code)



methodInfoLengths
int[] methodInfoLengths(Code)



methodInfoOffsets
int[] methodInfoOffsets(Code)



methodNames
String[] methodNames(Code)



methodSignatures
String[] methodSignatures(Code)



methodsStartOfs
int methodsStartOfs(Code)



nestedClassNames
String[] nestedClassNames(Code)



origCPoolCount
int origCPoolCount(Code)



packageName
String packageName(Code)



superName
String superName(Code)




Constructor Detail
ClassInfo
protected ClassInfo(String className, int loaderId)(Code)



ClassInfo
ClassInfo(byte[] buf) throws ClassFormatError(Code)
This constructor is used for creation of temporary instances of ClassInfo, typically to just find out something about class contained in a given .class file.




Method Detail
bciForMethodAndLineNo
public int bciForMethodAndLineNo(int methodIdx, int lineNo)(Code)



checkIfAtGoTo
public int checkIfAtGoTo(int methodIdx, int bci)(Code)
Check if the given method's opcode at bci is goto. or goto_w. If so, find and return the bci of the previous opcode



containsMethod
public boolean containsMethod(String name, String sig)(Code)



findPreviousBCI
public static int findPreviousBCI(byte[] codeBytes, int bci)(Code)
For given bytecode offset bci, return the offset of the bytecode before the one at bci



getClassFileBytes
abstract protected byte[] getClassFileBytes() throws IOException, ClassNotFoundException(Code)
Returns the class file bytes for this class.



getExceptionTableStartOffsetInMethodInfo
public int getExceptionTableStartOffsetInMethodInfo(int i)(Code)



getInterfaceNames
public String[] getInterfaceNames()(Code)



getLineNumberTables
public LineNumberTables getLineNumberTables()(Code)



getMethodBytecode
public byte[] getMethodBytecode(int i)(Code)



getMethodBytecodeOffsetInMethodInfo
public int getMethodBytecodeOffsetInMethodInfo(int i)(Code)



getMethodBytecodesLength
public int getMethodBytecodesLength(int i)(Code)



getMethodIndex
public int getMethodIndex(String name, String sig)(Code)



getMethodInfo
public byte[] getMethodInfo(int i)(Code)



getMethodInfoLength
public int getMethodInfoLength(int i)(Code)



getMethodName
public String getMethodName(int i)(Code)



getMethodNames
public String[] getMethodNames()(Code)



getMethodSignature
public String getMethodSignature(int i)(Code)



getMethodSignatures
public String[] getMethodSignatures()(Code)



getMinAndMaxLinesForMethod
public int[] getMinAndMaxLinesForMethod(int methodIdx)(Code)



getNestedClassNames
public String[] getNestedClassNames()(Code)



getOrigAttrsStartOfs
public int getOrigAttrsStartOfs()(Code)



getOrigCPoolCount
public int getOrigCPoolCount()(Code)



getOrigCPoolStartOfs
public int getOrigCPoolStartOfs()(Code)



getOrigFieldsStartOfs
public int getOrigFieldsStartOfs()(Code)



getOrigIntermediateDataStartOfs
public int getOrigIntermediateDataStartOfs()(Code)



getOrigMethodsStartOfs
public int getOrigMethodsStartOfs()(Code)



getPackageName
protected static String getPackageName(String clazzName)(Code)
Returns package name for the given class. In case of no package, returns an empty, but non-null string. Returned string is interned.



getRefClassName
public String getRefClassName(int refClassIdx)(Code)



getRefMethodsClassNameAndSig
public String[] getRefMethodsClassNameAndSig(int refMethodIdx)(Code)



getSuperclassName
public String getSuperclassName()(Code)



isAbstract
public boolean isAbstract()(Code)



isInterface
public boolean isInterface()(Code)



isMethodAbstract
public boolean isMethodAbstract(int i)(Code)



isMethodFinal
public boolean isMethodFinal(int i)(Code)



isMethodNative
public boolean isMethodNative(int i)(Code)



isMethodPrivate
public boolean isMethodPrivate(int i)(Code)



isMethodProtected
public boolean isMethodProtected(int i)(Code)



isMethodPublic
public boolean isMethodPublic(int i)(Code)



isMethodStatic
public boolean isMethodStatic(int i)(Code)



lineNoForMethodAndBci
public int lineNoForMethodAndBci(int methodIdx, int bci)(Code)



methodIdxAndBestBCIForLineNo
public int[] methodIdxAndBestBCIForLineNo(int lineNo)(Code)
Returns a {method idx, best BCI} pair for the given source line number in this class. If no suitable method is found, returns {-1, -1}. If this class doesn't have any line number tables (because it's abstract or because it was compiled without tables), returns {-2, -2}.



overridesVirtualMethod
public int overridesVirtualMethod(ClassInfo superClass, int superMethodIdx)(Code)



Fields inherited from org.netbeans.lib.profiler.classfile.BaseClassInfo
protected int classLoaderId(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected String nameAndLoader(Code)(Java Doc)

Methods inherited from org.netbeans.lib.profiler.classfile.BaseClassInfo
public int getInstrClassId()(Code)(Java Doc)
public int getLoaderId()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public String getNameAndLoader()(Code)(Java Doc)
public void setInstrClassId(int id)(Code)(Java Doc)
public void setLoaderId(int loaderId)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.