sun.tools.javap
Class MethodData

java.lang.Object
  extended by sun.tools.javap.MethodData

public class MethodData
extends java.lang.Object

Strores method data informastion.


Field Summary
(package private)  int access
           
(package private)  int attributes_count
           
(package private)  java.util.Vector<AttrData> attrs
           
(package private)  ClassData cls
           
(package private)  byte[] code
           
(package private)  java.util.Vector<AttrData> code_attrs
           
(package private)  int descriptor_index
           
(package private)  int[] exc_index_table
           
(package private)  java.util.Vector<TrapData> exception_table
           
(package private)  boolean isDeprecated
           
(package private)  boolean isSynthetic
           
(package private)  java.util.Vector<LineNumData> lin_num_tb
           
(package private)  java.util.Vector<LocVarData> loc_var_tb
           
(package private)  int max_locals
           
(package private)  int max_stack
           
(package private)  int name_index
           
(package private)  StackMapData[] stackMap
           
(package private)  StackMapTableData[] stackMapTable
           
 
Constructor Summary
MethodData(ClassData cls)
           
 
Method Summary
 int[] get_exc_index_table()
          Return exception index table in Exception attribute.
 java.lang.String[] getAccess()
          Return access of the method.
 int getArgumentlength()
          Return number of arguments of that method.
 java.util.Vector<?> getAttributes()
          Return method attributes.
 byte[] getCode()
          Return code attribute data of a method.
 java.util.Vector<?> getCodeAttributes()
          Return code attributes.
 java.util.Vector<?> getexception_table()
          Return exception table in code attributre.
 java.lang.String getInternalSig()
          Return internal siganature of the method.
 java.util.Vector<?> getlin_num_tb()
          Return LineNumberTable
 java.util.Vector<?> getloc_var_tb()
          Return LocalVariableTable.
 int getloc_var_tbsize()
          Return LocalVariableTable size.
 int getMaxLocals()
          Return number of local variables.
 int getMaxStack()
          Return max depth of operand stack.
 java.lang.String getName()
          Return name of the method.
 int getnumlines()
          Return LineNumberTable size.
 java.lang.String getParameters()
          Return java type parameter signature.
 java.lang.String getReturnType()
          Return java return type signature of method.
 StackMapData[] getStackMap()
          Return StackMap.
 StackMapTableData[] getStackMapTable()
          Return StackMapTable.
 boolean isDeprecated()
          Return true if method is deprecated.
 boolean isStatic()
          Return true if method is static
 boolean isSynthetic()
          Return true if method id synthetic.
 void read(java.io.DataInputStream in)
          Read method info.
 void readCode(java.io.DataInputStream in)
          Read code attribute info.
 void readExceptions(java.io.DataInputStream in)
          Read Exception attribute info.
(package private)  void readExceptionTable(java.io.DataInputStream in)
          Read exception table info.
(package private)  void readLineNumTable(java.io.DataInputStream in)
          Read LineNumberTable attribute info.
(package private)  void readLocVarTable(java.io.DataInputStream in)
          Read LocalVariableTable attribute info.
(package private)  void readStackMap(java.io.DataInputStream in)
          Read StackMap attribute info.
(package private)  void readStackMapTable(java.io.DataInputStream in)
          Read StackMapTable attribute info.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cls

ClassData cls

access

int access

name_index

int name_index

descriptor_index

int descriptor_index

attributes_count

int attributes_count

code

byte[] code

exception_table

java.util.Vector<TrapData> exception_table

lin_num_tb

java.util.Vector<LineNumData> lin_num_tb

loc_var_tb

java.util.Vector<LocVarData> loc_var_tb

stackMapTable

StackMapTableData[] stackMapTable

stackMap

StackMapData[] stackMap

exc_index_table

int[] exc_index_table

attrs

java.util.Vector<AttrData> attrs

code_attrs

java.util.Vector<AttrData> code_attrs

max_stack

int max_stack

max_locals

int max_locals

isSynthetic

boolean isSynthetic

isDeprecated

boolean isDeprecated
Constructor Detail

MethodData

public MethodData(ClassData cls)
Method Detail

read

public void read(java.io.DataInputStream in)
          throws java.io.IOException
Read method info.

Throws:
java.io.IOException

readCode

public void readCode(java.io.DataInputStream in)
              throws java.io.IOException
Read code attribute info.

Throws:
java.io.IOException

readExceptionTable

void readExceptionTable(java.io.DataInputStream in)
                  throws java.io.IOException
Read exception table info.

Throws:
java.io.IOException

readLineNumTable

void readLineNumTable(java.io.DataInputStream in)
                throws java.io.IOException
Read LineNumberTable attribute info.

Throws:
java.io.IOException

readLocVarTable

void readLocVarTable(java.io.DataInputStream in)
               throws java.io.IOException
Read LocalVariableTable attribute info.

Throws:
java.io.IOException

readExceptions

public void readExceptions(java.io.DataInputStream in)
                    throws java.io.IOException
Read Exception attribute info.

Throws:
java.io.IOException

readStackMapTable

void readStackMapTable(java.io.DataInputStream in)
                 throws java.io.IOException
Read StackMapTable attribute info.

Throws:
java.io.IOException

readStackMap

void readStackMap(java.io.DataInputStream in)
            throws java.io.IOException
Read StackMap attribute info.

Throws:
java.io.IOException

getAccess

public java.lang.String[] getAccess()
Return access of the method.


getName

public java.lang.String getName()
Return name of the method.


getInternalSig

public java.lang.String getInternalSig()
Return internal siganature of the method.


getReturnType

public java.lang.String getReturnType()
Return java return type signature of method.


getParameters

public java.lang.String getParameters()
Return java type parameter signature.


getCode

public byte[] getCode()
Return code attribute data of a method.


getnumlines

public int getnumlines()
Return LineNumberTable size.


getlin_num_tb

public java.util.Vector<?> getlin_num_tb()
Return LineNumberTable


getloc_var_tbsize

public int getloc_var_tbsize()
Return LocalVariableTable size.


getloc_var_tb

public java.util.Vector<?> getloc_var_tb()
Return LocalVariableTable.


getStackMap

public StackMapData[] getStackMap()
Return StackMap.


getStackMapTable

public StackMapTableData[] getStackMapTable()
Return StackMapTable.


getArgumentlength

public int getArgumentlength()
Return number of arguments of that method.


isStatic

public boolean isStatic()
Return true if method is static


getMaxStack

public int getMaxStack()
Return max depth of operand stack.


getMaxLocals

public int getMaxLocals()
Return number of local variables.


get_exc_index_table

public int[] get_exc_index_table()
Return exception index table in Exception attribute.


getexception_table

public java.util.Vector<?> getexception_table()
Return exception table in code attributre.


getAttributes

public java.util.Vector<?> getAttributes()
Return method attributes.


getCodeAttributes

public java.util.Vector<?> getCodeAttributes()
Return code attributes.


isSynthetic

public boolean isSynthetic()
Return true if method id synthetic.


isDeprecated

public boolean isDeprecated()
Return true if method is deprecated.