Examples of JwigResolver


Examples of dk.brics.jwig.analysis.JwigResolver

public class URLToWebmethodTargetsTwoWebMethods implements Feedback {

    private final String message;

    public URLToWebmethodTargetsTwoWebMethods(Method webMethod, Method nonFilter) {
        JwigResolver resolver = JwigResolver.get();
        String webMethodSig = resolver.getSootMethod(webMethod).getSignature();
        String nonFilterSig = resolver.getSootMethod(nonFilter).getSignature();
        message = "A URL to the webmethod: " + webMethodSig
                + " could also hit another webmethod: " + nonFilterSig;
    }
View Full Code Here

Examples of dk.brics.jwig.analysis.JwigResolver

                .asSubclass(WebSite.class);
        Jaive jaive = new Jaive(webSiteClass);
        jaive.doChecks();
        SootMethod root = null;
        if (args.length == 3) {
            final JwigResolver resolver = JwigResolver.get();
            Class<?> rootClass = Class.forName(args[1]);
            resolver.load(rootClass);
            root = resolver.getSootClass(rootClass).getMethodByName(args[2]);
        }
        jaive.printSiteMaps(root);
    }
View Full Code Here

Examples of dk.brics.jwig.analysis.JwigResolver

    public int getPriority() {
        return priority;
    }

    public FilterGroup(Method webMethod, Set<Method> filters) {
        JwigResolver resolver = JwigResolver.get();
        this.webMethod = webMethod;
        this.priority = MyPatternMatcher.getPriority(webMethod);
        this.defaultPriority = MyPatternMatcher.isDefaultPriority(webMethod);
        this.filters = new HashSet<Filter>();
        for (Method filter : filters) {
            if (webMethod.equals(filter))
                throw new IllegalArgumentException(
                        "The filters of a webmethod hit can not contain the webmethod it self");
            if (resolver.isFilter(filter))
                this.filters.add(new Filter(filter));
            else
                Feedbacks.add(new URLToWebmethodTargetsTwoWebMethods(webMethod,
                        filter));
        }
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.