1 37 package org.webharvest.runtime.processors; 38 39 import org.webharvest.definition.EmptyDef; 40 import org.webharvest.runtime.Scraper; 41 import org.webharvest.runtime.ScraperContext; 42 import org.webharvest.runtime.variables.EmptyVariable; 43 import org.webharvest.runtime.variables.IVariable; 44 45 48 public class EmptyProcessor extends BaseProcessor { 49 50 private EmptyDef emptyDef; 51 52 public EmptyProcessor(EmptyDef emptyDef) { 53 super(emptyDef); 54 this.emptyDef = emptyDef; 55 } 56 57 public IVariable execute(Scraper scraper, ScraperContext context) { 58 executeBody(emptyDef, scraper, context); 59 60 return new EmptyVariable(); 61 } 62 63 } | Popular Tags |