net.cscott.sdr.calls.ast
Class Par
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
net.cscott.sdr.calls.ast.Comp
net.cscott.sdr.calls.ast.Par
public class Par
- extends Comp
Par
is a list of call pieces. Each piece has
an associated selector. Every member of the formation must match
at least one selector. Each person executes the piece corresponding to
the first selector which matches them, in parallel.
- Version:
- $Id: Par.java,v 1.6 2006-10-17 19:58:21 cananian Exp $
- Author:
- C. Scott Ananian
Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
children
public final List<ParCall> children
Par
public Par(ParCall... children)
Par
public Par(List<ParCall> children)
accept
public <T> Comp accept(TransformVisitor<T> v,
T t)
- Specified by:
accept
in class Comp
accept
public <RESULT,CLOSURE> RESULT accept(ValueVisitor<RESULT,CLOSURE> v,
CLOSURE cl)
- Specified by:
accept
in class AstNode
build
public Par build(List<ParCall> children)
- Factory: creates new Par only if it would differ from this.
argsToString
public String argsToString()
- Overrides:
argsToString
in class AstNode
Copyright (c) 2006 C. Scott Ananian