| 1 package org.jicengine.element.impl; 2 3 import org.jicengine.expression.SyntaxException; 4 import org.jicengine.operation.Context; 5 import org.jicengine.operation.Operation; 6 7 import org.jicengine.element.*; 8 9 import java.util.*; 10 11 22 23 public class ListElementCompiler extends CollectionElementCompiler { 24 25 public ListElementCompiler(String name, Location location) throws ElementException 26 { 27 super(name, location); 28 } 29 30 40 41 public void setInstanceClass(String className) throws ElementException 42 { 43 super.setInstanceClass(className); 44 45 if( !List.class.isAssignableFrom(getElement().getInstanceClass())){ 46 throw new ElementException("Class '" + getElement().getInstanceClass().getName() + "' is not a List.",getElement().getName(), getLocation()); 47 } 48 } 49 } 50 | Popular Tags |