1 16 19 package org.apache.xalan.templates; 20 21 import org.apache.xpath.Expression; 22 import org.apache.xpath.XPathContext; 23 import org.apache.xpath.objects.XObject; 24 25 26 33 public class XUnresolvedVariableSimple extends XObject 34 { 35 public XUnresolvedVariableSimple(ElemVariable obj) 36 { 37 super(obj); 38 } 39 40 41 50 public XObject execute(XPathContext xctxt) throws javax.xml.transform.TransformerException 51 { 52 Expression expr = ((ElemVariable)m_obj).getSelect().getExpression(); 53 XObject xobj = expr.execute(xctxt); 54 xobj.allowDetachToRelease(false); 55 return xobj; 56 } 57 58 63 public int getType() 64 { 65 return CLASS_UNRESOLVEDVARIABLE; 66 } 67 68 74 public String getTypeString() 75 { 76 return "XUnresolvedVariableSimple (" + object().getClass().getName() + ")"; 77 } 78 79 80 } 81 82 | Popular Tags |