sdr 0.7

net.cscott.sdr.calls.ast
Class Comp

java.lang.Object
  extended by net.cscott.sdr.calls.ast.AstNode
      extended by net.cscott.sdr.calls.ast.Comp
Direct Known Subclasses:
If, In, Opt, Par, Seq

public abstract class Comp
extends AstNode

A Comp is a composition operator: either a sequence, an option list, a parallel split, or a restriction operator. A top-level Comp is a call definition. Lower-level Comps you can think of as call "comp"onents.

Version:
$Id: Comp.java,v 1.3 2006-10-17 16:29:05 cananian Exp $
Author:
C. Scott Ananian

Field Summary
 
Fields inherited from class net.cscott.sdr.calls.ast.AstNode
type
 
Constructor Summary
Comp(int type)
           
 
Method Summary
abstract
<T> Comp
accept(TransformVisitor<T> v, T t)
          Visitor pattern implementation for transformations.
 
Methods inherited from class net.cscott.sdr.calls.ast.AstNode
accept, argsToString, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Comp

public Comp(int type)
Method Detail

accept

public abstract <T> Comp accept(TransformVisitor<T> v,
                                T t)
Description copied from class: AstNode
Visitor pattern implementation for transformations. Each AstNode accepts a TransformVisitor and a value, and returns an instance of its own type (ie, Seq.accept(tv, "A") returns a Seq). The 't' parameter is a closure.

Specified by:
accept in class AstNode

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian