net.cscott.sdr.calls.ast
Class ParCall
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
net.cscott.sdr.calls.ast.ParCall
public class ParCall
- extends AstNode
ParCall bundles a selector with a
Comp. A ParCall applies
the child to dancers which match the given
Selectors.
- Author:
- C. Scott Ananian
| Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
selector
public final Expr selector
child
public final Comp child
ParCall
public ParCall(Expr selector,
Comp child)
evaluate
public Selector evaluate(DanceState ds)
accept
public <T> ParCall 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
accept
public <RESULT,CLOSURE> RESULT accept(ValueVisitor<RESULT,CLOSURE> v,
CLOSURE cl)
- Description copied from class:
AstNode
- Visitor pattern implementation for computations.
Each
AstNode accepts a ValueVisitor and a closure,
and returns an object of the appropriate result type.
- Specified by:
accept in class AstNode
build
public ParCall build(Expr selector,
Comp child)
- Factory: creates new ParCall only if it would differ from this.
argsToString
public String argsToString()
- Overrides:
argsToString in class AstNode
Copyright © 2006-2009 C. Scott Ananian