net.cscott.sdr.calls.ast
Class SeqCall
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
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
Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
Constructor Summary |
SeqCall(int type)
|
SeqCall
public SeqCall(int type)
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
Copyright © 2006-2009 C. Scott Ananian