sdr 0.21

net.cscott.sdr.calls.ast
Class AstNode

java.lang.Object
  extended by net.cscott.sdr.calls.ast.AstNode
Direct Known Subclasses:
Comp, Condition, OptCall, ParCall, SeqCall

public abstract class AstNode
extends Object

A Comp is a composition operator: either a sequence, an option list, a parallel split, or a restriction operator. A top-level Comp is a call definition. Lower-level Comps you can think of as call "comp"onents.

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

Field Summary
 int type
           
 
Constructor Summary
protected AstNode(int type)
           
protected AstNode(int type, String name)
           
 
Method Summary
abstract
<T> AstNode
accept(TransformVisitor<T> v, T t)
           
abstract
<RESULT,CLOSURE>
RESULT
accept(ValueVisitor<RESULT,CLOSURE> v, CLOSURE cl)
           
protected  String argsToString()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

type

public final int type
Constructor Detail

AstNode

protected AstNode(int type)

AstNode

protected AstNode(int type,
                  String name)
Method Detail

accept

public abstract <T> AstNode accept(TransformVisitor<T> v,
                                   T t)

accept

public abstract <RESULT,CLOSURE> RESULT accept(ValueVisitor<RESULT,CLOSURE> v,
                                               CLOSURE cl)

toString

public String toString()
Overrides:
toString in class Object

argsToString

protected String argsToString()

sdr 0.21

Copyright (c) 2006 C. Scott Ananian