sdr 0.21

net.cscott.sdr.calls.ast
Class ParCall

java.lang.Object
  extended by net.cscott.sdr.calls.ast.AstNode
      extended by 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 TaggedFormation.Tags.

Version:
$Id: ParCall.java,v 1.10 2006-10-19 18:44:50 cananian Exp $
Author:
C. Scott Ananian

Field Summary
 Comp child
           
 Set<TaggedFormation.Tag> tags
           
 
Fields inherited from class net.cscott.sdr.calls.ast.AstNode
type
 
Constructor Summary
ParCall(Set<TaggedFormation.Tag> tags, Comp child)
           
 
Method Summary
<T> ParCall
accept(TransformVisitor<T> v, T t)
           
<RESULT,CLOSURE>
RESULT
accept(ValueVisitor<RESULT,CLOSURE> v, CLOSURE cl)
           
 String argsToString()
           
 ParCall build(Set<TaggedFormation.Tag> tags, Comp child)
          Factory: creates new ParCall only if it would differ from this.
static Set<TaggedFormation.Tag> parseTags(List<String> tagNames)
           
 
Methods inherited from class net.cscott.sdr.calls.ast.AstNode
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

tags

public final Set<TaggedFormation.Tag> tags

child

public final Comp child
Constructor Detail

ParCall

public ParCall(Set<TaggedFormation.Tag> tags,
               Comp child)
Method Detail

parseTags

public static Set<TaggedFormation.Tag> parseTags(List<String> tagNames)

accept

public <T> ParCall accept(TransformVisitor<T> v,
                          T t)
Specified by:
accept in class AstNode

accept

public <RESULT,CLOSURE> RESULT accept(ValueVisitor<RESULT,CLOSURE> v,
                                      CLOSURE cl)
Specified by:
accept in class AstNode

build

public ParCall build(Set<TaggedFormation.Tag> tags,
                     Comp child)
Factory: creates new ParCall only if it would differ from this.


argsToString

public String argsToString()
Overrides:
argsToString in class AstNode

sdr 0.21

Copyright (c) 2006 C. Scott Ananian