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.
Loader
public ClassfileLoader Loader()
MagicNumber
public int MagicNumber()
MinorVersion
public int MinorVersion()
MajorVersion
public int MajorVersion()
ConstantPool
public ConstantPool ConstantPool()
AccessFlag
public int AccessFlag()
ClassIndex
public int ClassIndex()
RawClass
public Class_info RawClass()
Class
public java.lang.String Class()
SuperclassIndex
public int SuperclassIndex()
RawSuperclass
public Class_info RawSuperclass()
Superclass
public java.lang.String Superclass()
Interface
public Class_info Interface(java.lang.String name)
Interfaces
public java.util.Collection Interfaces()
Fields
public java.util.Collection Fields()
Field
public Field_info Field(java.lang.String name)
LocateField
public Field_info LocateField(java.lang.String name)
Methods
public java.util.Collection Methods()
Method
public Method_info Method(java.lang.String signature)
LocateMethod
public Method_info LocateMethod(java.lang.String signature)
Attributes
public java.util.Collection Attributes()
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
Declaration
public java.lang.String Declaration()
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