com.deltax.util
Class CPoolReader.classfile

java.lang.Object
  extended bycom.deltax.util.CPoolReader.classfile
Enclosing class:
CPoolReader

public class CPoolReader.classfile
extends java.lang.Object

This class mirrors exactly the class file structure, providing basic translation and filtering services.


Constructor Summary
CPoolReader.classfile(byte[] b)
           
CPoolReader.classfile(java.io.InputStream is)
           
CPoolReader.classfile(java.lang.String className, byte[] b)
           
CPoolReader.classfile(java.lang.String className, java.io.DataInputStream _is)
           
 
Method Summary
 boolean forNameCalled()
          This method detects the presence of "Class.forName()" call in this classfile.
 java.lang.String getClassName()
           
 java.lang.String getCPClassName()
           
 java.lang.String getCPClassName(boolean externalize)
          *
 java.lang.String[] getInterfaces()
           
 java.lang.String getSuperClass()
           
 java.lang.String getSuperClass(boolean externalize)
           
 java.lang.String[] getUsedClasses()
          Retrieve the classes known to this .class file Note: The classes are returned in internal form
 boolean isInterface()
          Return true if the classfile contains an interface class *
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CPoolReader.classfile

public CPoolReader.classfile(java.lang.String className,
                             byte[] b)
                      throws java.io.IOException,
                             java.lang.ClassFormatError

CPoolReader.classfile

public CPoolReader.classfile(byte[] b)
                      throws java.io.IOException,
                             java.lang.ClassFormatError

CPoolReader.classfile

public CPoolReader.classfile(java.io.InputStream is)
                      throws java.io.IOException,
                             java.lang.ClassFormatError

CPoolReader.classfile

public CPoolReader.classfile(java.lang.String className,
                             java.io.DataInputStream _is)
                      throws java.io.IOException,
                             java.lang.ClassFormatError
Method Detail

getClassName

public java.lang.String getClassName()
Returns:
the name of the class specified at construction

isInterface

public boolean isInterface()
Return true if the classfile contains an interface class *

Returns:
true if the classfile contains an interface class

getCPClassName

public java.lang.String getCPClassName(boolean externalize)
*

Returns:
the name of the class specified by this classfile

getCPClassName

public java.lang.String getCPClassName()

getSuperClass

public java.lang.String getSuperClass(boolean externalize)

getSuperClass

public java.lang.String getSuperClass()

getInterfaces

public java.lang.String[] getInterfaces()

forNameCalled

public boolean forNameCalled()
This method detects the presence of "Class.forName()" call in this classfile.

Returns:
true if the class refers to "Class.forName()" methods

getUsedClasses

public java.lang.String[] getUsedClasses()
Retrieve the classes known to this .class file Note: The classes are returned in internal form


toString

public java.lang.String toString()