orc.ast.simple
Class Call
java.lang.Object
orc.ast.simple.Expression
orc.ast.simple.Call
- All Implemented Interfaces:
- Debuggable, Locatable
public class Call
- extends Expression
- implements Locatable
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
callee
public Argument callee
args
public java.util.List<Argument> args
location
public SourceLocation location
Call
public Call(Argument callee,
java.util.List<Argument> args)
Call
public Call(Argument callee,
Argument arga,
Argument argb)
Call
public Call(Argument callee,
Argument arg)
Call
public Call(Argument callee)
subst
public Expression subst(Argument a,
NamedVar x)
- Description copied from class:
Expression
- Performs the substitution [a/x], replacing occurrences of the free variable x
with the new argument a (which could be any argument, including another variable).
- Specified by:
subst
in class Expression
- Parameters:
a
- The replacing variable or valuex
- The free variable whose occurrences will be replaced
vars
public java.util.Set<Var> vars()
- Description copied from class:
Expression
- Find the set of all unbound Vars (note: not FreeVars) in this expression.
- Specified by:
vars
in class Expression
convert
public Expr convert(Env<Var> vars)
- Description copied from class:
Expression
- Converts abstract syntax tree into a serializable form, used to generate
portable .oil (Orc Intermediate Language) files.
- Specified by:
convert
in class Expression
- Parameters:
vars
- The vars environment, used in content addressable mode to
find the appropriate deBruijn index of a var.
- Returns:
- A new node.
setSourceLocation
public void setSourceLocation(SourceLocation location)
- Specified by:
setSourceLocation
in interface Locatable
getSourceLocation
public SourceLocation getSourceLocation()
- Specified by:
getSourceLocation
in interface Debuggable