| 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 | |
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. |
accessFlags | char accessFlags(Code) | | |
attrsStartOfs | int attrsStartOfs(Code) | | |
cpoolRefsToClassIdx | char[] cpoolRefsToClassIdx(Code) | | |
cpoolRefsToMethodClassNameAndSig | String[][] cpoolRefsToMethodClassNameAndSig(Code) | | |
cpoolRefsToMethodIdx | char[] cpoolRefsToMethodIdx(Code) | | |
cpoolStartOfs | int cpoolStartOfs(Code) | | |
exceptionTableStartOffsets | int[] exceptionTableStartOffsets(Code) | | |
fieldsStartOfs | int fieldsStartOfs(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) | | |
methodsStartOfs | int methodsStartOfs(Code) | | |
origCPoolCount | int origCPoolCount(Code) | | |
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.
|
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
|
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
|
getExceptionTableStartOffsetInMethodInfo | public int getExceptionTableStartOffsetInMethodInfo(int i)(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) | | |
getMethodInfo | public byte[] getMethodInfo(int i)(Code) | | |
getMethodInfoLength | public int getMethodInfoLength(int i)(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) | | |
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) | | |
|
|