org.nlogo.nvm
Class Procedure
java.lang.Object
org.nlogo.nvm.Procedure
public class Procedure
- extends Object
fileName
public final String fileName
name
public String name
pos
public int pos
endPos
public int endPos
args
public List<String> args
tyype
public final Procedure.Type tyype
usableBy
public String usableBy
localsCount
public int localsCount
templateVars
public int templateVars
topLevel
public boolean topLevel
owner
public SourceOwner owner
nameToken
public org.nlogo.api.Token nameToken
lets
public final List<Let> lets
code
public Command[] code
Procedure
public Procedure(String fileName,
Procedure.Type tyype)
getNumSlots
public int getNumSlots()
- returns the total number of slots this procedure requires in an
Activation. It's basically the arity of the procedure plus
the number of local vars plus the number of unique (i.e., nested)
template vars.
getSyntax
public Syntax getSyntax()
getNameAndFile
public String getNameAndFile()
toString
public String toString()
- Overrides:
toString
in class Object
dump
public String dump()
init
public void init(Workspace workspace)