org.apache.axis.utils.bytecode
Class Javap

java.lang.Object
  |
  +--org.apache.axis.utils.bytecode.Javap
All Implemented Interfaces:
Extractor

public class Javap
extends java.lang.Object
implements Extractor

This is a utility class that can be used to extract information from class files using javap. Currently the class is used to extract method parameter names for classes compiled with debug information.

Author:
Rich Scheuerle (scheu@us.ibm.com)

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
Javap()
           
 
Method Summary
 java.lang.String[] getParameterNamesFromDebugInfo(java.lang.reflect.Method method)
          Get the return/parameter names for the indicated method.
 java.util.Vector javap(java.lang.Class cls)
          Invokes javap and returns each line of output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

Javap

public Javap()
Method Detail

getParameterNamesFromDebugInfo

public java.lang.String[] getParameterNamesFromDebugInfo(java.lang.reflect.Method method)
Get the return/parameter names for the indicated method. Returns null if no parameter names are available or accessible.
Specified by:
getParameterNamesFromDebugInfo in interface Extractor
Parameters:
method - is the Method
Returns:
String[] of return followed by parameter names (or null)

javap

public java.util.Vector javap(java.lang.Class cls)
Invokes javap and returns each line of output.
Parameters:
class -  
Returns:
Vector containing String objects representing output lines.


Copyright © 2002 Apache XML Project. All Rights Reserved.