com.gomjabbar.classes.bytecode
Class PseudoClassFile

java.lang.Object
  |
  +--com.gomjabbar.classes.bytecode.PseudoClassFile

public class PseudoClassFile
extends java.lang.Object


Constructor Summary
PseudoClassFile()
           
PseudoClassFile(byte[] b)
           
 
Method Summary
 byte[] addConstant(ConstantInfo ci)
           
 void addField(FieldInfo f)
           
 void addInterface(byte[] class_index)
           
 void addMethod(MethodInfo m)
           
 boolean get_access_Abstract()
           
 boolean get_access_Final()
           
 boolean get_access_Interface()
           
 boolean get_access_Public()
           
 boolean get_access_Super()
           
 AccessInfo getAccess()
           
 byte[] getAccessBytes()
           
 AttributeInfo[] getAttributes()
           
static byte[] getAttributesCountBytes(AttributeInfo[] ati)
           
 java.lang.String getClassName()
           
 byte[] getClassSuperBytes()
           
 byte[] getClassThisBytes()
           
 ConstantInfo getConstant(byte[] index)
           
 int getConstantCount()
           
 ConstantInfo[] getConstants()
           
static byte[] getConstantsCountBytes(ConstantInfo[] ci)
           
 FieldInfo[] getFields()
           
static byte[] getFieldsCountBytes(FieldInfo[] fi)
           
 byte[][] getInterfacesBytes()
           
static byte[] getInterfacesCountBytes(java.lang.String[] n)
           
 java.lang.String[] getInterfacesNames()
           
 byte[] getMagicBytes()
           
 MethodInfo[] getMethods()
           
static byte[] getMethodsCountBytes(MethodInfo[] mi)
           
 java.lang.String getSuperName()
           
 byte[] getVersionsBytes()
           
 void set_access_Abstract(boolean set)
           
 void set_access_Final(boolean set)
           
 void set_access_Interface(boolean set)
           
 void set_access_Public(boolean set)
           
 void set_access_Super(boolean set)
           
 void setClasses_super(byte[] class_index)
           
 void setClasses_this(byte[] class_index)
           
 void setSourceFileAttribute(byte[] type_index, byte[] name_index)
           
 byte[] toBytes()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PseudoClassFile

public PseudoClassFile()

PseudoClassFile

public PseudoClassFile(byte[] b)
Method Detail

getAccess

public AccessInfo getAccess()

addConstant

public byte[] addConstant(ConstantInfo ci)

getConstant

public ConstantInfo getConstant(byte[] index)

getConstantCount

public int getConstantCount()

getConstants

public ConstantInfo[] getConstants()

set_access_Public

public void set_access_Public(boolean set)

set_access_Final

public void set_access_Final(boolean set)

set_access_Abstract

public void set_access_Abstract(boolean set)

set_access_Super

public void set_access_Super(boolean set)

set_access_Interface

public void set_access_Interface(boolean set)

get_access_Public

public boolean get_access_Public()

get_access_Final

public boolean get_access_Final()

get_access_Abstract

public boolean get_access_Abstract()

get_access_Super

public boolean get_access_Super()

get_access_Interface

public boolean get_access_Interface()

setClasses_this

public void setClasses_this(byte[] class_index)

setClasses_super

public void setClasses_super(byte[] class_index)

addInterface

public void addInterface(byte[] class_index)

getInterfacesNames

public java.lang.String[] getInterfacesNames()

getInterfacesBytes

public byte[][] getInterfacesBytes()

getClassName

public java.lang.String getClassName()

getSuperName

public java.lang.String getSuperName()

addField

public void addField(FieldInfo f)

getFields

public FieldInfo[] getFields()

addMethod

public void addMethod(MethodInfo m)

getMethods

public MethodInfo[] getMethods()

setSourceFileAttribute

public void setSourceFileAttribute(byte[] type_index,
                                   byte[] name_index)

getAttributes

public AttributeInfo[] getAttributes()

getMagicBytes

public byte[] getMagicBytes()

getVersionsBytes

public byte[] getVersionsBytes()

getConstantsCountBytes

public static byte[] getConstantsCountBytes(ConstantInfo[] ci)

getInterfacesCountBytes

public static byte[] getInterfacesCountBytes(java.lang.String[] n)

getFieldsCountBytes

public static byte[] getFieldsCountBytes(FieldInfo[] fi)

getMethodsCountBytes

public static byte[] getMethodsCountBytes(MethodInfo[] mi)

getAttributesCountBytes

public static byte[] getAttributesCountBytes(AttributeInfo[] ati)

getAccessBytes

public byte[] getAccessBytes()

getClassThisBytes

public byte[] getClassThisBytes()

getClassSuperBytes

public byte[] getClassSuperBytes()

toBytes

public byte[] toBytes()

toString

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