byucc.jhdl.synth.classparse
Class ClassFileParser

java.lang.Object
  extended bybyucc.jhdl.synth.classparse.ClassFileParser
Direct Known Subclasses:
AttributeInfo, Attributes, ClassFile, ConstantPool, CPInfo, FieldInfo, Fields, MethodInfo, Methods, OpCode

public abstract class ClassFileParser
extends java.lang.Object


Field Summary
static int CONSTANT_Class
           
static int CONSTANT_Double
           
static int CONSTANT_Fieldref
           
static int CONSTANT_Float
           
static int CONSTANT_Integer
           
static int CONSTANT_InterfaceMethodref
           
static int CONSTANT_Long
           
static int CONSTANT_Methodref
           
static int CONSTANT_NameAndType
           
static int CONSTANT_String
           
static int CONSTANT_Utf8
           
 
Constructor Summary
ClassFileParser()
           
ClassFileParser(java.io.InputStream stream)
           
 
Method Summary
protected static ClassFile getClassFile()
           
protected static ConstantPool getConstantPool()
           
 int length()
           
 AttributeInfo parseAttributeInfo(ClassFileParser parent)
           
 Attributes parseAttributes(ClassFileParser cfp)
           
 ConstantPool parseConstantPool()
           
 CPInfo parseCPInfo()
           
 double parseDouble()
           
 FieldInfo parseFieldInfo()
           
static Fields parseFields()
           
 float parseFloat()
           
 long parseLong()
           
 MethodInfo parseMethodInfo()
           
 Methods parseMethods()
           
 OpCode parseOpCode(int pc)
           
 boolean parseSuccess()
           
 java.lang.String parseUTF()
           
 int s2()
           
 java.lang.StringBuffer toJasmin()
           
 java.lang.StringBuffer toJasmin(java.lang.StringBuffer result)
           
 int u1()
           
 int u2()
           
 int u4()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONSTANT_Class

public static final int CONSTANT_Class
See Also:
Constant Field Values

CONSTANT_Fieldref

public static final int CONSTANT_Fieldref
See Also:
Constant Field Values

CONSTANT_Methodref

public static final int CONSTANT_Methodref
See Also:
Constant Field Values

CONSTANT_InterfaceMethodref

public static final int CONSTANT_InterfaceMethodref
See Also:
Constant Field Values

CONSTANT_String

public static final int CONSTANT_String
See Also:
Constant Field Values

CONSTANT_Integer

public static final int CONSTANT_Integer
See Also:
Constant Field Values

CONSTANT_Float

public static final int CONSTANT_Float
See Also:
Constant Field Values

CONSTANT_Long

public static final int CONSTANT_Long
See Also:
Constant Field Values

CONSTANT_Double

public static final int CONSTANT_Double
See Also:
Constant Field Values

CONSTANT_NameAndType

public static final int CONSTANT_NameAndType
See Also:
Constant Field Values

CONSTANT_Utf8

public static final int CONSTANT_Utf8
See Also:
Constant Field Values
Constructor Detail

ClassFileParser

public ClassFileParser()

ClassFileParser

public ClassFileParser(java.io.InputStream stream)
Method Detail

length

public int length()

u1

public int u1()

u2

public int u2()

s2

public int s2()

u4

public int u4()

parseFloat

public float parseFloat()

parseLong

public long parseLong()

parseDouble

public double parseDouble()

parseUTF

public java.lang.String parseUTF()

parseConstantPool

public ConstantPool parseConstantPool()

parseFields

public static Fields parseFields()

parseFieldInfo

public FieldInfo parseFieldInfo()

parseMethods

public Methods parseMethods()

parseMethodInfo

public MethodInfo parseMethodInfo()

parseOpCode

public OpCode parseOpCode(int pc)

parseAttributes

public Attributes parseAttributes(ClassFileParser cfp)

parseAttributeInfo

public AttributeInfo parseAttributeInfo(ClassFileParser parent)

parseCPInfo

public CPInfo parseCPInfo()

getClassFile

protected static ClassFile getClassFile()

getConstantPool

protected static ConstantPool getConstantPool()

parseSuccess

public boolean parseSuccess()

toJasmin

public java.lang.StringBuffer toJasmin()

toJasmin

public java.lang.StringBuffer toJasmin(java.lang.StringBuffer result)


Copyright ? 2006 Brigham Young University, Configurable Computing Laboratory. All Rights Reserved.