public class BytecodeInstructionProducer
extends java.lang.Object
| Constructor and Description |
|---|
BytecodeInstructionProducer() |
| Modifier and Type | Method and Description |
|---|---|
static void |
produce(java.lang.String src,
java.io.InputStream in,
InstructionConsumer cons,
boolean readLines)
Begins parsing bytecode and feeding it to an InstructionConsumer
|
static RtflType |
resolveVal(java.io.InputStream in,
java.lang.String src,
int ln)
Resolves bytecode representing a data value into an RtflType object
|
public static void produce(java.lang.String src,
java.io.InputStream in,
InstructionConsumer cons,
boolean readLines)
throws java.io.IOException,
ProducerException,
RuntimeException
src - the bytecode source's name (does not have to be filename)in - the InputStream from which to read bytecodecons - the InstructionConsumer to consume produced instructionsreadLines - whether the source input has line numbers included that should be readjava.io.IOException - if reading from the input failsProducerException - if a bytecode parsing or reading error occursRuntimeException - If consumer fails when finish() is calledpublic static RtflType resolveVal(java.io.InputStream in, java.lang.String src, int ln) throws java.io.IOException, ProducerException
in - the InputStream to read fromsrc - the bytecode source's name (does not have to be filename)ln - the source line from which this value originatedjava.io.IOException - if reading from the InputStream failsProducerException - if an invalid type is encountered