1 30 package com.genimen.djeneric.tools.scriptengine.core.nodes; 31 32 import com.genimen.djeneric.tools.scriptengine.core.DjScriptParserEngine; 33 import com.genimen.djeneric.tools.scriptengine.core.SimpleNode; 34 import com.genimen.djeneric.tools.scriptengine.core.util.DjScriptExecutionTimeScope; 35 36 public class TerminateStatementNode extends SimpleNode 37 { 38 39 public TerminateStatementNode(int i) 40 { 41 super(i); 42 } 43 44 public TerminateStatementNode(DjScriptParserEngine p, int i) 45 { 46 super(p, i); 47 } 48 49 public String getName() 50 { 51 return "terminate"; 52 } 53 54 public String toString() 55 { 56 return getName(); 57 } 58 59 public void execute(DjScriptExecutionTimeScope ctxt) 60 { 61 ctxt.getContainer().terminate(); 62 } 63 } | Popular Tags |