Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.maloi.evolvo.expressiontree.vm
Class Instruction  view Instruction download Instruction.java

java.lang.Object
  extended byorg.maloi.evolvo.expressiontree.vm.Instruction

public class Instruction
extends java.lang.Object

A single instruction for a simple stack machine. Yes, this is made up almost entirely of public data members. Yes, that's what I wanted. Actually, I wanted a C-style struct. But this is the closest I can get.


Field Summary
 org.maloi.evolvo.expressiontree.operators.OperatorInterface op
           
 int reg
           
 byte type
           
static byte TYPE_OPERATOR
           
static byte TYPE_REGISTER
           
static byte TYPE_VALUE
           
 double value
           
 
Constructor Summary
Instruction()
           
Instruction(Instruction inst)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_VALUE

public static final byte TYPE_VALUE
See Also:
Constant Field Values

TYPE_REGISTER

public static final byte TYPE_REGISTER
See Also:
Constant Field Values

TYPE_OPERATOR

public static final byte TYPE_OPERATOR
See Also:
Constant Field Values

type

public byte type

value

public double value

reg

public int reg

op

public org.maloi.evolvo.expressiontree.operators.OperatorInterface op
Constructor Detail

Instruction

public Instruction()

Instruction

public Instruction(Instruction inst)