harpoon.Tools.PatMat
Class Spec.ExpName

java.lang.Object
  extended by harpoon.Tools.PatMat.Spec.Exp
      extended by harpoon.Tools.PatMat.Spec.ExpName
Enclosing class:
Spec

public static class Spec.ExpName
extends Spec.Exp

Extension of Spec.Exp that represents a symbolic constant. Usually used to represent an Assembly Language Label in the data segment.

See Also:
NAME

Field Summary
 String name
          Name for this.
 
Constructor Summary
Spec.ExpName(String name)
          Constructs a new Spec.ExpName representing name.
 
Method Summary
 void accept(Spec.ExpVisitor v)
          Applies v's visit method to this.
 Spec.Exp build(Spec.ExpList kids)
          Creates a new Spec.Exp similar to this one, using the provided Spec.ExpList of children.
 Spec.ExpList kids()
          Creates an Spec.ExpList of children of this Spec.Exp.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public final String name
Name for this.

See Also:
Label
Constructor Detail

Spec.ExpName

public Spec.ExpName(String name)
Constructs a new Spec.ExpName representing name.

Method Detail

accept

public void accept(Spec.ExpVisitor v)
Description copied from class: Spec.Exp
Applies v's visit method to this. This is effectively a gludge to emulate multiple dispatch. Must be reimplemented by all subclasses of Spec.Exp.
effects: Calls v.visit(this).

Specified by:
accept in class Spec.Exp
See Also:
"Design Patterns pgs. 331-344"

build

public Spec.Exp build(Spec.ExpList kids)
Description copied from class: Spec.Exp
Creates a new Spec.Exp similar to this one, using the provided Spec.ExpList of children.

Specified by:
build in class Spec.Exp

kids

public Spec.ExpList kids()
Description copied from class: Spec.Exp
Creates an Spec.ExpList of children of this Spec.Exp.

Specified by:
kids in class Spec.Exp

toString

public String toString()
Overrides:
toString in class Object