Statements

org.nlogo.core.Statements
class Statements(file: String, val stmts: Seq[Statement], val nonLocalExit: Boolean) extends AstNode

represents a chunk of zero or more NetLogo statements. Note that this is not necessarily a "block" of statements, as block means something specific (enclosed in [], in particular). This class is used to represent other groups of statements as well, for instance procedure bodies. nonLocalExit identifies that the statements contain one or more commands (possibly nested) which may cause a non-local exit (like stop or report)

Attributes

Source
AstNode.scala
Graph
Supertypes
trait AstNode
class Object
trait Matchable
class Any

Members list

Value members

Constructors

def this(file: String)

Attributes

Source
AstNode.scala
def this(file: String, stmts: Seq[Statement])

Attributes

Source
AstNode.scala
def this(file: String, nonLocalExit: Boolean)

Attributes

Source
AstNode.scala

Concrete methods

def copy(file: String, stmts: Seq[Statement], nonLocalExit: Boolean): Statements

Attributes

Source
AstNode.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
AstNode.scala

Inherited methods

def end: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala
def start: Int

Attributes

Inherited from:
SourceLocatable
Source
SourceLocation.scala

Concrete fields

Attributes

Source
AstNode.scala

Attributes

Source
AstNode.scala