Examples of ExpressionVisitor


Examples of client.net.sf.saxon.ce.expr.ExpressionVisitor

                body = Literal.makeEmptySequence();
            }

            try {

                ExpressionVisitor visitor = makeExpressionVisitor();
                body = visitor.simplify(body);

                procedure.setUseAttributeSets(useAttributeSets);
                procedure.setName(getObjectName());
                procedure.setBody(body);
                procedure.setSourceLocator(this);
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.ExpressionVisitor

        if (nonMatching != null) {
            nonMatchingBlock = nonMatching.compileSequenceConstructor(exec, decl, nonMatching.iterateAxis(Axis.CHILD));
        }

        try {
            ExpressionVisitor visitor = makeExpressionVisitor();
            return new AnalyzeString(select,
                                     regex,
                                     flags,
                                     (matchingBlock==null ? null : matchingBlock.simplify(visitor)),
                                     (nonMatchingBlock==null ? null : nonMatchingBlock.simplify(visitor)));
View Full Code Here

Examples of client.net.sf.saxon.ce.expr.ExpressionVisitor

        }
    }

    public void validate(Declaration decl) throws XPathException {

        ExpressionVisitor visitor = makeExpressionVisitor();
        if (wait != null) {
            wait = typeCheck(wait);
            try {
                RoleLocator role =
                    new RoleLocator(RoleLocator.INSTRUCTION, "ixsl:schedule-action/wait", 0);
View Full Code Here

Examples of com.google.dart.engine.internal.html.angular.ExpressionVisitor

      return null;
    }
    final Expression[] result = {null};
    try {
      // TODO(scheglov) this code is very Angular specific
      htmlUnit.accept(new ExpressionVisitor() {
        @Override
        public void visitExpression(Expression expression) {
          Expression at = getExpressionAt(expression, offset);
          if (at != null) {
            result[0] = at;
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.analyzer.ExpressionVisitor

    public synchronized void analyseTypes() {
        if (!fullyTyped) {
            ProducedType.depth.set(-100);
            //System.out.println("Run analysis phase for " + fileName);
            compilationUnit.visit(new ExpressionVisitor());
            compilationUnit.visit(new VisibilityVisitor());
            compilationUnit.visit(new AnnotationVisitor());
            compilationUnit.visit(new TypeArgumentVisitor());
            fullyTyped = true;
        }
View Full Code Here

Examples of com.sun.msv.grammar.ExpressionVisitor

     * from expression.
     *
     * find an element or attribute, then use its namespace URI.
     */
    protected String sniffDefaultNs( Expression exp ) {
        return (String)exp.visit( new ExpressionVisitor(){
            public Object onElement( ElementExp exp ) {
                return sniff(exp.getNameClass());
            }
            public Object onAttribute( AttributeExp exp ) {
                return sniff(exp.nameClass);
View Full Code Here

Examples of net.sf.saxon.expr.ExpressionVisitor

            throws XPathException {
        UserFunction fn = functions.get(makeKey(functionName, staticArgs.length));
        if (fn == null) {
            return null;
        }
        ExpressionVisitor visitor = ExpressionVisitor.make(env);
        UserFunctionCall fc = new UserFunctionCall();
        fc.setFunctionName(functionName);
        fc.setArguments(staticArgs);
        fc.setFunction(fn);
        fc.checkFunctionCall(fn, visitor);
View Full Code Here

Examples of net.sf.saxon.expr.ExpressionVisitor

    */

    public XPathExpression createExpression(String expression) throws XPathException {
        Expression exp = ExpressionTool.make(expression, staticContext, 0, -1, 1, false);
        exp.setContainer(staticContext);
        ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
        visitor.setExecutable(getExecutable());
        exp = visitor.typeCheck(exp, Type.ITEM_TYPE);
        exp = visitor.optimize(exp, Type.ITEM_TYPE);
        SlotManager map = staticContext.getStackFrameMap();
        int numberOfExternalVariables = map.getNumberOfVariables();
        ExpressionTool.allocateSlots(exp, numberOfExternalVariables, map);
        XPathExpression xpe = new XPathExpression(this, exp);
        xpe.setStackFrameMap(map, numberOfExternalVariables);
View Full Code Here

Examples of net.sf.saxon.expr.ExpressionVisitor

     * @since 9.1
     */

    public XPathExpression createPattern(String pattern) throws XPathException {
        Pattern pat = Pattern.make(pattern, staticContext, staticContext.getExecutable());
        ExpressionVisitor visitor = ExpressionVisitor.make(staticContext);
        pat.analyze(visitor, Type.NODE_TYPE);
        SlotManager map = staticContext.getStackFrameMap();
        int slots = map.getNumberOfVariables();
        slots = pat.allocateSlots(staticContext, map, slots);
        PatternSponsor sponsor = new PatternSponsor(pat);
View Full Code Here

Examples of net.sf.saxon.expr.ExpressionVisitor

                // not yet compiled
                fd.registerReference(ufc);
                ufc.setConfirmed(true);
            } else {
                ufc.setFunction(fn);
                ExpressionVisitor visitor = ExpressionVisitor.make(fd.getStaticContext());
                visitor.setExecutable(fd.getExecutable());
                ufc.checkFunctionCall(fn, visitor);
            }
            return ufc;
        } else {
            return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.