byucc.jhdl.synth.classparse
Class MethodInfo

java.lang.Object
  extended bybyucc.jhdl.synth.classparse.ClassFileParser
      extended bybyucc.jhdl.synth.classparse.MethodInfo

public class MethodInfo
extends ClassFileParser


Field Summary
 
Fields inherited from class byucc.jhdl.synth.classparse.ClassFileParser
CONSTANT_Class, CONSTANT_Double, CONSTANT_Fieldref, CONSTANT_Float, CONSTANT_Integer, CONSTANT_InterfaceMethodref, CONSTANT_Long, CONSTANT_Methodref, CONSTANT_NameAndType, CONSTANT_String, CONSTANT_Utf8
 
Constructor Summary
MethodInfo()
           
 
Method Summary
 void execute(VirtualMachine vm)
           
 AttributeCode getAttributeCode()
           
 BasicBlock[] getBasicBlocks(VirtualMachine vm)
           
 AttributeCode getCode()
           
 java.lang.String getDescriptor()
           
 OpCode getInstructionByPC(int pc)
           
 java.lang.String getLocalVariableName(int pc, int index)
           
 java.lang.String getName()
           
 boolean hasVoidReturnType()
           
 int numArguments()
           
 void toClass(ClassFileWriter output)
          Spit out the contents of this MethodInfo to the given ClassFileWriter.
 java.lang.StringBuffer toJasmin(java.lang.StringBuffer result)
           
 java.lang.String toString()
           
 java.lang.String toStringVerbose()
           
 
Methods inherited from class byucc.jhdl.synth.classparse.ClassFileParser
getClassFile, getConstantPool, length, parseAttributeInfo, parseAttributes, parseConstantPool, parseCPInfo, parseDouble, parseFieldInfo, parseFields, parseFloat, parseLong, parseMethodInfo, parseMethods, parseOpCode, parseSuccess, parseUTF, s2, toJasmin, u1, u2, u4
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodInfo

public MethodInfo()
Method Detail

toClass

public void toClass(ClassFileWriter output)
Spit out the contents of this MethodInfo to the given ClassFileWriter. This method is basically the opposite of the constructor. The constructor reads in a MethodInfo from a DataInputStream and this method spits the MethodInfo out to a DataOutputStream, (which is in the ClassFileWriter).

Parameters:
output - a ClassFileWriter constructed with a DataOutputStram to contain the output class file.

toString

public java.lang.String toString()

toStringVerbose

public java.lang.String toStringVerbose()

toJasmin

public java.lang.StringBuffer toJasmin(java.lang.StringBuffer result)
Overrides:
toJasmin in class ClassFileParser

getName

public java.lang.String getName()

getDescriptor

public java.lang.String getDescriptor()

numArguments

public int numArguments()

hasVoidReturnType

public boolean hasVoidReturnType()

execute

public void execute(VirtualMachine vm)

getCode

public AttributeCode getCode()

getAttributeCode

public AttributeCode getAttributeCode()

getBasicBlocks

public BasicBlock[] getBasicBlocks(VirtualMachine vm)

getInstructionByPC

public OpCode getInstructionByPC(int pc)

getLocalVariableName

public java.lang.String getLocalVariableName(int pc,
                                             int index)


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