Beispiel #1
0
 public ExprNewInstanceNodeForgeEval(
     ExprNewInstanceNodeForge forge,
     InstanceManufacturer manufacturer)
 {
     this.forge = forge;
     this.manufacturer = manufacturer;
 }
 public override ExprNode Validate(ExprValidationContext validationContext)
 {
     try
     {
         _targetClass = validationContext.EngineImportService.ResolveType(_classIdent, false);
     }
     catch (EngineImportException)
     {
         throw new ExprValidationException("Failed to resolve new-operator class name '" + _classIdent + "'");
     }
     _manufacturer = InstanceManufacturerFactory.GetManufacturer(
         _targetClass, validationContext.EngineImportService, this.ChildNodes);
     return(null);
 }
Beispiel #3
0
 public ExprNewInstanceNodeNonArrayForgeEval(InstanceManufacturer manufacturer)
 {
     _manufacturer = manufacturer;
 }