18 using System.Collections.Generic;
23 using ErrorManagement;
47 private string castTypeId;
63 get {
return this.type; }
64 set { this.type = value; }
72 get {
return this.castTypeId; }
80 get {
return this.expression; }
81 set { this.expression = value; }
98 this.castTypeId = castType;
99 this.expression = exp;
114 return v.Visit(
this, o);
Abstract class encapsulate a programming language expression.
override Object Accept(Visitor v, Object o)
Accept method of a concrete visitor.
Encapsulates a cast expression.
This class encapsulates a location in a specific file. Implements an Inmutable pattern. So it can be used in any context, that is his internal fields never change.
Abstract class that represents all different types.
string CastId
Gets the cast identifier.
CastExpression(string castType, Expression exp, Location location)
Constructor of CastExpression
Location location
Location: Encapsulates in one object the line, column and filename
TypeExpression CastType
Gets or sets the type to convert the expression