sdr 0.21

net.cscott.sdr.calls.ast
Class OptCall

java.lang.Object
  extended by net.cscott.sdr.calls.ast.AstNode
      extended by net.cscott.sdr.calls.ast.OptCall

public class OptCall
extends AstNode

OptCall bundles a formation condition with a Comp.

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

Field Summary
 Comp child
           
 List<Selector> selectors
           
 
Fields inherited from class net.cscott.sdr.calls.ast.AstNode
type
 
Constructor Summary
OptCall(List<Selector> selectors, Comp child)
           
 
Method Summary
<T> OptCall
accept(TransformVisitor<T> v, T t)
           
<RESULT,CLOSURE>
RESULT
accept(ValueVisitor<RESULT,CLOSURE> v, CLOSURE cl)
           
 String argsToString()
           
 OptCall build(List<Selector> selectors, Comp child)
          Factory: creates new OptCall only if it would differ from this.
static List<Selector> parseFormations(List<String> formations)
           
 
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

selectors

public final List<Selector> selectors

child

public final Comp child
Constructor Detail

OptCall

public OptCall(List<Selector> selectors,
               Comp child)
Method Detail

accept

public <T> OptCall 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

parseFormations

public static List<Selector> parseFormations(List<String> formations)

build

public OptCall build(List<Selector> selectors,
                     Comp child)
Factory: creates new OptCall 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