com.jeantessier.classreader
Class Classfile

java.lang.Object
  |
  +--com.jeantessier.classreader.Classfile
All Implemented Interfaces:
Deprecatable, Visitable

public class Classfile
extends java.lang.Object
implements Deprecatable, Visitable


Field Summary
static int ACC_ABSTRACT
           
static int ACC_FINAL
           
static int ACC_INTERFACE
           
static int ACC_PUBLIC
           
static int ACC_SUPER
           
 
Constructor Summary
Classfile(ClassfileLoader loader, java.io.DataInputStream in)
          Parses the input stream and extracts the class description.
 
Method Summary
 void accept(Visitor visitor)
           
 int getAccessFlag()
           
 java.util.Collection getAllFields()
           
 java.util.Collection getAllInterfaces()
           
 java.util.Collection getAllMethods()
           
 java.util.Collection getAttributes()
           
 int getClassIndex()
           
 java.lang.String getClassName()
           
 ConstantPool getConstantPool()
           
 java.lang.String getDeclaration()
           
 Field_info getField(java.lang.String name)
           
 Class_info getInterface(java.lang.String name)
           
 ClassfileLoader getLoader()
           
 int getMagicNumber()
           
 int getMajorVersion()
           
 Method_info getMethod(java.lang.String signature)
           
 int getMinorVersion()
           
 Class_info getRawClass()
           
 Class_info getRawSuperclass()
           
 int getSuperclassIndex()
           
 java.lang.String getSuperclassName()
           
 boolean isAbstract()
           
 boolean isDeprecated()
           
 boolean isFinal()
           
 boolean isInterface()
           
 boolean isPackage()
           
 boolean isPublic()
           
 boolean isSuper()
           
 boolean isSynthetic()
           
 Field_info locateField(java.lang.String name)
           
 Method_info locateMethod(java.lang.String signature)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ACC_PUBLIC

public static final int ACC_PUBLIC

ACC_FINAL

public static final int ACC_FINAL

ACC_SUPER

public static final int ACC_SUPER

ACC_INTERFACE

public static final int ACC_INTERFACE

ACC_ABSTRACT

public static final int ACC_ABSTRACT
Constructor Detail

Classfile

public Classfile(ClassfileLoader loader,
                 java.io.DataInputStream in)
          throws java.io.IOException
Parses the input stream and extracts the class description. You should only call this constructor from a ClassfileLoader.
Method Detail

getLoader

public ClassfileLoader getLoader()

getMagicNumber

public int getMagicNumber()

getMinorVersion

public int getMinorVersion()

getMajorVersion

public int getMajorVersion()

getConstantPool

public ConstantPool getConstantPool()

getAccessFlag

public int getAccessFlag()

getClassIndex

public int getClassIndex()

getRawClass

public Class_info getRawClass()

getClassName

public java.lang.String getClassName()

getSuperclassIndex

public int getSuperclassIndex()

getRawSuperclass

public Class_info getRawSuperclass()

getSuperclassName

public java.lang.String getSuperclassName()

getInterface

public Class_info getInterface(java.lang.String name)

getAllInterfaces

public java.util.Collection getAllInterfaces()

getAllFields

public java.util.Collection getAllFields()

getField

public Field_info getField(java.lang.String name)

locateField

public Field_info locateField(java.lang.String name)

getAllMethods

public java.util.Collection getAllMethods()

getMethod

public Method_info getMethod(java.lang.String signature)

locateMethod

public Method_info locateMethod(java.lang.String signature)

getAttributes

public java.util.Collection getAttributes()

isPublic

public boolean isPublic()

isPackage

public boolean isPackage()

isFinal

public boolean isFinal()

isSuper

public boolean isSuper()

isInterface

public boolean isInterface()

isAbstract

public boolean isAbstract()

isSynthetic

public boolean isSynthetic()

isDeprecated

public boolean isDeprecated()
Specified by:
isDeprecated in interface Deprecatable

getDeclaration

public java.lang.String getDeclaration()

accept

public void accept(Visitor visitor)
Specified by:
accept in interface Visitable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Dependency Finder 1.1.0 © 2001-2004 Jean Tessier.