ant.compiler.asm
Class Asm

java.lang.Object
  extended byant.compiler.asm.Asm
Direct Known Subclasses:
Asm.Conditional, Asm.Sequential

public abstract class Asm
extends java.lang.Object

Ant assembler with inner classes that represents the basic statments for the ant simulator.

License: GPL

Author:
Bernhard Haumacher

Nested Class Summary
static class Asm.AbstractDFSVisitor
          Abstract depth first search visitor implementation of the Asm statements.
static class Asm.AbstractVisitor
          Default implementation of the Asm.Visitor interface.
static class Asm.Conditional
          Abstract super class for all conditional Asm statements.
static class Asm.DFSPostorderVisitor
          Depth first search visitor that performs a postorder graph traversal.
static class Asm.DFSPreorderVisitor
          Depth first search visitor that performs a preorder graph traversal.
static class Asm.Drop
          Asm statement representing the drop instruction.
static class Asm.Flip
          Asm statement representing the flip instruction.
static class Asm.Mark
          Asm statement representing the mark instruction.
static class Asm.Move
          Asm statement representing the move instruction.
static class Asm.Nop
          Asm statement that does nothing.
static class Asm.NopFoodTest
          Asm statement representing the special test FoundFood.
static class Asm.NopWallTest
          Asm statement representing the special test HitWall.
static class Asm.PickUp
          Asm statement representing the pickup instruction.
static class Asm.Sense
          Asm statement representing the sense instruction.
static class Asm.Sequential
          Abstract super class for all sequential Asm statements.
static class Asm.Turn
          Asm statement representing the turn instruction.
static class Asm.Unmark
          Asm statement representing the unmark instruction.
static interface Asm.Visitor
          Visitor interface implemented by all Asm statements.
 
Field Summary
(package private)  int addr
           
 
Constructor Summary
Asm()
           
 
Method Summary
abstract  void setNext(Asm op)
           
abstract  void visit(Asm.Visitor v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

addr

int addr
Constructor Detail

Asm

public Asm()
Method Detail

setNext

public abstract void setNext(Asm op)

visit

public abstract void visit(Asm.Visitor v)