sdr 0.21

net.cscott.sdr.calls.ast
Class Part

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

public class Part
extends SeqCall

Part denotes an fractional part of a call. Iff isDivisible is false, calls can not be fractionalized below this Part. The Part also denotes timing: each part executes in the same amount of time (unless modified by In. Part has exactly one child, which is a Comp.

Version:
$Id: Part.java,v 1.5 2006-10-17 16:29:05 cananian Exp $
Author:
C. Scott Ananian

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

isDivisible

public final boolean isDivisible

child

public final Comp child
Constructor Detail

Part

public Part(boolean isDivisible,
            Comp child)
Method Detail

accept

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

accept

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

build

public Part build(boolean isDivisible,
                  Comp child)
Factory: creates new Part 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