CommandBlock

org.nlogo.compile.api.CommandBlock
class CommandBlock(val statements: Statements, val sourceLocation: SourceLocation) extends Expression

represents a block containing zero or more statements. Called a command block rather than a statement block for consistency with usual NetLogo jargon. Note that this is an Expression, and as such can be an argument to commands and reporters, etc.

Attributes

Source
AstNode.scala
Graph
Supertypes
trait Expression
trait AstNode
trait AstNode
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Attributes

Source
AstNode.scala
def copy(statements: Statements, sourceLocation: SourceLocation): CommandBlock

Attributes

Source
AstNode.scala
def reportedType(): Int

returns the type of this expression. Generally synthesized from types of subexpressions.

returns the type of this expression. Generally synthesized from types of subexpressions.

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