예제 #1
0
 public VariableScope(StaticNameResolver outerInstance, QName name, org.eclipse.wst.xml.xpath2.api.typesystem.ItemType typeDef, VariableScope nextScope)
 {
     this.outerInstance = outerInstance;
     this.name          = name;
     this.typeDef       = typeDef;
     this.nextScope     = nextScope;
 }
예제 #2
0
        public virtual XPath2Expression parseExpression(string expression, api.StaticContext context)
        {
            XPath xPath = (new XPathParserInAntlr()).parse(expression);

            xPath.StaticContext = context;
            StaticNameResolver name_check = new StaticNameResolver(context);

            name_check.check(xPath);

            xPath.Axes              = name_check.Axes;
            xPath.FreeVariables     = name_check.FreeVariables;
            xPath.ResolvedFunctions = name_check.ResolvedFunctions;
            xPath.RootUsed          = name_check.RootUsed;

            return(xPath);
        }