net.sf.farrago.fennel.calc
Class CalcProgramBuilder.Instruction

java.lang.Object
  extended by net.sf.farrago.fennel.calc.CalcProgramBuilder.Instruction
Enclosing class:
CalcProgramBuilder

 class CalcProgramBuilder.Instruction
extends Object

Represents an instruction and its operands


Field Summary
private  String comment
           
private  CalcProgramBuilder.InstructionDef def
           
private  Integer lineNumber
           
private  CalcProgramBuilder.Operand[] operands
           
 
Constructor Summary
CalcProgramBuilder.Instruction(CalcProgramBuilder.InstructionDef opCode, CalcProgramBuilder.Operand[] operands)
           
 
Method Summary
 String getComment()
           
 CalcProgramBuilder.Operand[] getOperands()
           
(package private)  void print(PrintWriter writer)
           
 void setComment(String comment)
           
 void setLineNumber(int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

def

private CalcProgramBuilder.InstructionDef def

operands

private CalcProgramBuilder.Operand[] operands

comment

private String comment

lineNumber

private Integer lineNumber
Constructor Detail

CalcProgramBuilder.Instruction

public CalcProgramBuilder.Instruction(CalcProgramBuilder.InstructionDef opCode,
                                      CalcProgramBuilder.Operand[] operands)
Method Detail

print

final void print(PrintWriter writer)

getOperands

public final CalcProgramBuilder.Operand[] getOperands()

getComment

public String getComment()

setComment

public void setComment(String comment)

setLineNumber

public void setLineNumber(int lineNumber)