The StaDyn Programming Language
Source code documentation of StaDyn, a hybrid static and dynamic typing language.
|
Encapsulates a Catch statement of our programming languages. More...
Public Member Functions | |
CatchStatement (IdDeclaration param, Block stats, Location location) | |
Constructor of CatchStatement More... | |
override Object | Accept (Visitor v, Object o) |
Accept method of a concrete visitor. More... | |
![]() | |
override object | AcceptOperation (AstOperation op, object arg) |
Dispatches expressions to the operation passed as argument. It provokes the execution of op.AcceptOperation(AstNode) with the parameter resolved polymorfically More... | |
![]() | |
override bool | Equals (object obj) |
AntLR compares Nodes with the class name. This is not correct for our purposes. More... | |
override int | GetHashCode () |
Properties | |
IdDeclaration | Exception [get] |
Gets the exception to catch More... | |
Block | Statements [get] |
Gets the block executed when the exception is caught. More... | |
![]() | |
Location | Location [get] |
Additional Inherited Members | |
![]() | |
Statement (Location location) | |
Protected constructor of Statement. More... | |
![]() | |
AstNode (Location location) | |
Protected constructor of NodeAst More... | |
![]() | |
Location | location |
Location: Encapsulates in one object the line, column and filename More... | |
Encapsulates a Catch statement of our programming languages.
Inheritance: Statement. Implements Composite pattern [Composite]. Implements Visitor pattern [Concrete Element].
Definition at line 36 of file CatchStatement.cs.
AST.CatchStatement.CatchStatement | ( | IdDeclaration | param, |
Block | stats, | ||
Location | location | ||
) |
Constructor of CatchStatement
param | Exception to catch. |
stats | Block to execute when the exception is caught. |
fileName | File name. |
lineNumber | Line number. |
columnNumber | Column number. |
Definition at line 79 of file CatchStatement.cs.
|
virtual |
Accept method of a concrete visitor.
v | Concrete visitor |
o | Optional information to use in the visit. |
Implements AST.AstNode.
Definition at line 95 of file CatchStatement.cs.
|
get |
Gets the exception to catch
Definition at line 56 of file CatchStatement.cs.
|
get |
Gets the block executed when the exception is caught.
Definition at line 63 of file CatchStatement.cs.