Examples of jjtAccept()


Examples of org.apache.geronimo.gshell.parser.ASTCommandLine.jjtAccept()

             final ExecutingVisitor visitor = new ExecutingVisitor(executor, environment);
             final ASTCommandLine root = parse(commandLine);

             return new CommandLine() {
                 public Object execute() throws Exception {
                     return root.jjtAccept(visitor, null);
                 }
             };
         }
         catch (Exception e) {
             throw new ErrorNotification(e);
View Full Code Here

Examples of org.apache.jsieve.parser.generated.SimpleNode.jjtAccept()

        try {
            final SimpleNode node = new SieveParser(inputStream, "UTF-8")
                    .start();
            SieveValidationVisitor visitor = new SieveValidationVisitor(
                    commandManager, testManager, comparatorManager);
            node.jjtAccept(visitor, null);
            return node;
        } catch (ParseException ex) {
            if (log.isErrorEnabled())
                log.error("Parse failed. Reason: " + ex.getMessage());
            if (log.isDebugEnabled())
View Full Code Here

Examples of org.apache.velocity.runtime.parser.node.SimpleNode.jjtAccept()

    {
        SimpleNode sn = (SimpleNode) template.getData();

        ReferenceListVisitor rlv = new ReferenceListVisitor();

        sn.jjtAccept( rlv, null );

        return rlv.getList();
    }

    /**
 
View Full Code Here

Examples of org.codehaus.aspectwerkz.expression.ast.ASTParameter.jjtAccept()

                ASTParameter parameterNode = (ASTParameter) parameterNodes.get(iexp + 1);
                boolean isEager = parameterNode.getDeclaringClassPattern().isEagerWildCard();
                if (isEager) {
                    // TODO - ignore for now, but not really supported - eager in the middle will match one
                }
                if (Boolean.TRUE.equals((Boolean) parameterNode.jjtAccept(this, parameterTypes[ictx]))) {
                    matchCount += 1;
                    ictx++;
                } else {
                    // assume matched by starting ".." and rewind expression index
                    matchCount = 0;
View Full Code Here

Examples of org.codehaus.aspectwerkz.expression.ast.Node.jjtAccept()

                              ((MemberInfo) info).getDeclaringType() : (ClassInfo) info;

        Node childNode = node.jjtGetChild(0);
        MethodInfo[] methodInfos = classInfo.getMethods();
        for (int i = 0; i < methodInfos.length; i++) {
            if (Boolean.TRUE.equals(childNode.jjtAccept(this, methodInfos[i]))) {
                return Boolean.TRUE;
            }
        }

        ConstructorInfo[] constructorInfos = classInfo.getConstructors();
View Full Code Here

Examples of org.eclipse.jst.jsp.core.internal.java.jspel.ASTExpression.jjtAccept()

       
        try
        {
            final ASTExpression expr = parser.Expression();
            final PrefixVisitor visitor = new PrefixVisitor(relativePosition, elText);
            expr.jjtAccept(visitor, null);
            return visitor;
        }
        catch (ParseException pe)
        {
            // TODO: handle parser by using current and expected tokens
View Full Code Here

Examples of org.geoserver.wcs.kvp.rangesubset.ASTFieldSubset.jjtAccept()

        public Object visit(ASTRangeSubset node, Object data) {
            RangeSubsetType rs = wcsf.createRangeSubsetType();
            for (int i = 0; i < node.jjtGetNumChildren(); i++) {
                ASTFieldSubset fs = (ASTFieldSubset) node.jjtGetChild(i);
                FieldSubsetType fst = (FieldSubsetType) fs.jjtAccept(this, data);
                rs.getFieldSubset().add(fst);
            }
            return rs;
        }
View Full Code Here

Examples of org.geoserver.wcs.kvp.rangesubset.Node.jjtAccept()

           
            for (int i = 0; i < node.jjtGetNumChildren(); i++) {
                Node child = node.jjtGetChild(i);
                if(child instanceof ASTFieldId) {
                    CodeType id = owsf.createCodeType();
                    id.setValue((String) child.jjtAccept(this, null));
                    fs.setIdentifier(id);
                } else if(child instanceof ASTInterpolation) {
                    fs.setInterpolationType((String) child.jjtAccept(this, null));
                } else if(child instanceof ASTAxisSubset) {
                    fs.getAxisSubset().add(child.jjtAccept(this, null));
View Full Code Here

Examples of org.geoserver.wcs.kvp.rangesubset.Node.jjtAccept()

                if(child instanceof ASTFieldId) {
                    CodeType id = owsf.createCodeType();
                    id.setValue((String) child.jjtAccept(this, null));
                    fs.setIdentifier(id);
                } else if(child instanceof ASTInterpolation) {
                    fs.setInterpolationType((String) child.jjtAccept(this, null));
                } else if(child instanceof ASTAxisSubset) {
                    fs.getAxisSubset().add(child.jjtAccept(this, null));
                }
            }
            return fs;
View Full Code Here

Examples of org.geoserver.wcs.kvp.rangesubset.SimpleNode.jjtAccept()

    @Override
    public Object parse(String value) throws Exception {
        RangeSubsetParser parser = new RangeSubsetParser(new StringReader(value));
        SimpleNode root = parser.RangeSubset();
        RangeSubsetType result = (RangeSubsetType) root.jjtAccept(new RangeSubsetKvpParserVisitor(), null);
       
        for (Iterator it = result.getFieldSubset().iterator(); it.hasNext();) {
            FieldSubsetType type = (FieldSubsetType) it.next();
            String interpolationType = type.getInterpolationType();
            if(interpolationType != 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.