ReporterBlock

org.nlogo.core.ReporterBlock
See theReporterBlock companion object
class ReporterBlock(val app: ReporterApp, val sourceLocation: SourceLocation) extends Expression

represents a block containing exactly one expression. Called a reporter block rather than an expression 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. However, it is a different expression from the expression it contains... Its "blockness" is significant.

Attributes

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

Members list

Value members

Concrete methods

Attributes

Source
AstNode.scala

Attributes

Source
AstNode.scala
def reportedType(): Int

computes the type of this block. Reporter block types are determined in a somewhat complicated way. This is derived from code from the old parser.

computes the type of this block. Reporter block types are determined in a somewhat complicated way. This is derived from code from the old parser.

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