1 22 23 24 package org.xquark.xquery.parser; 25 26 import org.xquark.xquery.typing.TypeException; 27 28 29 public class ExternalVariable extends Value { 30 private static final String RCSRevision = "$Revision: 1.7 $"; 31 private static final String RCSName = "$Name: $"; 32 33 Variable var = null; 34 35 39 public void accept(ParserVisitor visitor) throws XQueryException { 40 visitor.visit(this); 41 } 42 43 47 public ExternalVariable( Variable var, XQueryModule parentModule) throws TypeException, XQueryException { 48 super(var.toString()); 49 this.var = var; 50 setParentModule(parentModule); 51 if (parentModule != null && parentModule.getStaticContext().getTypeVisitor() != null) 52 accept(parentModule.getStaticContext().getTypeVisitor()); 53 } 54 55 59 public Object getObjectValue() { return var; } 60 61 } 62 63 64 65 | Popular Tags |