net.cscott.sdr.calls.ast
Class Opt
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
net.cscott.sdr.calls.ast.Comp
net.cscott.sdr.calls.ast.Opt
public class Opt
- extends Comp
Opt
is a list of call options. Each option has
an associated formation. This first option whose formation is matchable
against the current formation is used to perform the call; the rest are
ignored.
- Version:
- $Id: Opt.java,v 1.6 2006-10-19 18:44:50 cananian Exp $
- Author:
- C. Scott Ananian
Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
children
public final List<OptCall> children
Opt
public Opt(OptCall... children)
Opt
public Opt(List<OptCall> children)
accept
public <T> Comp accept(TransformVisitor<T> v,
T t)
- Specified by:
accept
in class Comp
accept
public <RESULT,CLOSURE> RESULT accept(ValueVisitor<RESULT,CLOSURE> v,
CLOSURE cl)
- Specified by:
accept
in class AstNode
build
public Opt build(List<OptCall> children)
- Factory: creates new Opt only if it would differ from this.
argsToString
public String argsToString()
- Overrides:
argsToString
in class AstNode
Copyright (c) 2006 C. Scott Ananian