Examples of SingletonList


Examples of org.jaxen.util.SingletonList

        if ( docNode == null )
        {
            return Collections.EMPTY_LIST;
        }

        List list = new SingletonList(docNode);

        absContext.setNodeSet( list );

        return super.evaluate( absContext );
    }
View Full Code Here

Examples of org.jaxen.util.SingletonList

        if ( obj instanceof List )
        {
            return (List) obj;
        }

        return new SingletonList(obj);
    }
View Full Code Here

Examples of org.jaxen.util.SingletonList

            }
        }
       
        if (filters != null)
        {
            List list = new SingletonList(node);

            context.setNodeSet( list );
           
            // XXXX: filters aren't positional, so should we clone context?
View Full Code Here

Examples of org.jaxen.util.SingletonList

        {
            fullContext.setNodeSet( (List) node );
        }
        else
        {
            List list = new SingletonList(node);

            fullContext.setNodeSet( list );
        }

        return fullContext;
View Full Code Here

Examples of org.jaxen.util.SingletonList

        }



        List list = new SingletonList(docNode);



        absContext.setNodeSet( list );
View Full Code Here

Examples of org.jaxen.util.SingletonList

        if ( obj instanceof List )
        {
            return (List) obj;
        }

        return new SingletonList(obj);
    }
View Full Code Here

Examples of org.jaxen.util.SingletonList

                new ContextSupport(baseContextSupport.getNamespaceContext(),
                                   new SynapseXPathFunctionContext(baseContextSupport.getFunctionContext(), synCtx),
                                   new SynapseXPathVariableContext(baseContextSupport.getVariableContext(), synCtx),
                                   baseContextSupport.getNavigator());
            Context context = new Context(contextSupport);
            context.setNodeSet(new SingletonList(synCtx.getEnvelope()));
            return context;
        } else if (obj instanceof SOAPEnvelope) {
            SOAPEnvelope env = (SOAPEnvelope)obj;
            ContextSupport baseContextSupport = getContextSupport();
            ContextSupport contextSupport =
                new ContextSupport(baseContextSupport.getNamespaceContext(),
                                   baseContextSupport.getFunctionContext(),
                                   new SynapseXPathVariableContext(baseContextSupport.getVariableContext(), env),
                                   baseContextSupport.getNavigator());
            Context context = new Context(contextSupport);
            context.setNodeSet(new SingletonList(env));
            return context;
        } else {
            return super.getContext(obj);
        }
    }
View Full Code Here

Examples of soot.util.SingletonList

    }
    public SootMethod getMainMethod() {
        if(mainClass==null) {
            throw new RuntimeException("There is no main class set!");
        }
        if (!mainClass.declaresMethod ("main", new SingletonList( ArrayType.v(RefType.v("java.lang.String"), 1) ), VoidType.v())) {
            throw new RuntimeException("Main class declares no main method!");
        }
        return mainClass.getMethod ("main", new SingletonList( ArrayType.v(RefType.v("java.lang.String"), 1) ), VoidType.v());  
    }
View Full Code Here

Examples of soot.util.SingletonList

            setMainClass(getSootClass(Options.v().main_class()));
        } else {              
          // try to infer a main class from the command line if none is given
          for (Iterator<String> classIter = Options.v().classes().iterator(); classIter.hasNext();) {
                    SootClass c = getSootClass(classIter.next());
                    if (c.declaresMethod ("main", new SingletonList( ArrayType.v(RefType.v("java.lang.String"), 1) ), VoidType.v()))
                    {
                        G.v().out.println("No main class given. Inferred '"+c.getName()+"' as main class.");         
                        setMainClass(c);
                        return;
                    }
            }
         
          // try to infer a main class from the usual classpath if none is given
          for (Iterator<SootClass> classIter = getApplicationClasses().iterator(); classIter.hasNext();) {
                    SootClass c = (SootClass) classIter.next();
                    if (c.declaresMethod ("main", new SingletonList( ArrayType.v(RefType.v("java.lang.String"), 1) ), VoidType.v()))
                    {
                        G.v().out.println("No main class given. Inferred '"+c.getName()+"' as main class.");         
                        setMainClass(c);
                        return;
                    }
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.