net.cscott.sdr.calls.ast
Class Comp
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
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
Comp
s 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
Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
Constructor Summary |
Comp(int type)
|
Method Summary |
abstract
|
accept(TransformVisitor<T> v,
T t)
Visitor pattern implementation for transformations. |
Comp
public Comp(int type)
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
Copyright © 2006-2009 C. Scott Ananian