net.cscott.sdr.calls.ast
Class If
java.lang.Object
net.cscott.sdr.calls.ast.AstNode
net.cscott.sdr.calls.ast.Comp
net.cscott.sdr.calls.ast.If
public class If
- extends Comp
If
rejects its child as suitable for execution from
the current formation unless its condition evaluates true.
- Version:
- $Id: If.java,v 1.7 2006-10-17 16:29:05 cananian Exp $
- Author:
- C. Scott Ananian
Fields inherited from class net.cscott.sdr.calls.ast.AstNode |
type |
condition
public final Condition condition
child
public final Comp child
If
public If(Condition condition,
Comp child)
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 If build(Condition condition,
Comp child)
- Factory: creates new If only if it would differ from this.
argsToString
public String argsToString()
- Overrides:
argsToString
in class AstNode
Copyright (c) 2006 C. Scott Ananian