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
Constructor Summary |
Classfile(ClassfileLoader loader,
java.io.DataInputStream in)
Parses the input stream and extracts the class description. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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.
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.