|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectbyucc.jhdl.synth.classparse.WeightedOpCode
A simple structure to hold a weight and an OpCode. This class only exists so that "if" and "switch" statements can associate their decision values with the OpCodes they lead to.
| Constructor Summary | |
WeightedOpCode(java.lang.Integer weight,
OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode. |
|
WeightedOpCode(int weight,
OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode. |
|
WeightedOpCode(java.lang.String weight,
OpCode code)
Construct a new WeightedOpCode with the given weight and OpCode. |
|
| Method Summary | |
OpCode |
getOpCode()
get the OpCode from this WeightedOpCode |
java.lang.String |
getWeight()
get the weight for this WeightedOpCode |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public WeightedOpCode(java.lang.String weight,
OpCode code)
weight - the weight to be associated to this OpCodecode - an OpCode needing a weight
public WeightedOpCode(java.lang.Integer weight,
OpCode code)
weight - the weight to be associated to this OpCodecode - an OpCode needing a weight
public WeightedOpCode(int weight,
OpCode code)
weight - the weight to be associated to this OpCodecode - an OpCode needing a weight| Method Detail |
public java.lang.String getWeight()
public OpCode getOpCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||