sdr 0.7

net.cscott.sdr.calls.ast
Class SeqCall

java.lang.Object
  extended by net.cscott.sdr.calls.ast.AstNode
      extended by net.cscott.sdr.calls.ast.SeqCall
Direct Known Subclasses:
Apply, Part, Prim

public abstract class SeqCall
extends AstNode

SeqCall is the common superclass of all AST elements which can appear in a Seq.

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

Field Summary
 
Fields inherited from class net.cscott.sdr.calls.ast.AstNode
type
 
Constructor Summary
SeqCall(int type)
           
 
Method Summary
abstract
<T> SeqCall
accept(TransformVisitor<T> v, T t)
          Visitor pattern implementation for transformations.
abstract  boolean isIndeterminate()
          True if the result of parts() can not be used for fractionalization.
abstract  Expr parts()
          How many 'parts' are represented by this SeqCall.
 
Methods inherited from class net.cscott.sdr.calls.ast.AstNode
accept, argsToString, toString, valueOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SeqCall

public SeqCall(int type)
Method Detail

parts

public abstract Expr parts()
How many 'parts' are represented by this SeqCall. Should be Expr.literal(Fraction.ONE) for all but Part.


isIndeterminate

public abstract boolean isIndeterminate()
True if the result of parts() can not be used for fractionalization.


accept

public abstract <T> SeqCall 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

sdr 0.7

Copyright © 2006-2009 C. Scott Ananian