|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cmpware.fastmodel.Instruction
public class Instruction
This class defines an instruction used in the FastModel. It is intended to be extended and its methods over-ridden. Typically this class is extended once for each unique instruction 'type'.
Copyright (c) 2006 Cmpware, Inc. All Rights Reserved.
| Field Summary | |
|---|---|
protected long |
addr
The address of this instruction instance |
protected int |
code
The instruction code |
static java.lang.String |
copyright
Copyright string |
protected Decoder |
decoder
The instruction decoder |
protected Function |
function
The instruction Function |
protected java.lang.String |
name
The instruction name |
Instruction |
next
The next cached instruction |
protected long |
profile
The profile count |
| Constructor Summary | |
|---|---|
Instruction(java.lang.String name,
Decoder decoder,
Function function)
This constructor initializes an instruction. |
|
Instruction(java.lang.String name,
Decoder decoder,
Function function,
int code)
This constructor initializes an instruction. |
|
| Method Summary | |
|---|---|
static Instruction |
newInstance(Instruction i,
FastModel fastModel)
This static method returns a copy of an Instruction, with a new Function object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String copyright
public Instruction next
protected long addr
protected long profile
protected int code
protected java.lang.String name
protected Decoder decoder
protected Function function
| Constructor Detail |
|---|
public Instruction(java.lang.String name,
Decoder decoder,
Function function)
name - the instruction name.decoder - the instruction decoder.function - the instruction functionality.
public Instruction(java.lang.String name,
Decoder decoder,
Function function,
int code)
name - the instruction name.decoder - the instruction decoder.function - the instruction functionality.code - the instruction ID code.| Method Detail |
|---|
public static Instruction newInstance(Instruction i,
FastModel fastModel)
i - The instruction to be copied.fastModel - The FastModel processor class for
this instruction.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||