Package dk.brics.string.external

Examples of dk.brics.string.external.Resolver


        for (Class<?> clazz : customResolvers) {
            Object o = clazz.newInstance();
            if (!(o instanceof Resolver)) {
                throw new RuntimeException(clazz.getCanonicalName() + " does not implement " + Resolver.class.getCanonicalName());
            }
            Resolver resolver = (Resolver)o;
            StringAnalysis.addResolver(resolver);
        }
       
        // create external visibility
        ExternalVisibility ext = null;
View Full Code Here


   */
  public void analyzeStrings() {
    dk.brics.string.Debug.init();
    Debug.println(1, true, "Running string analysis...");
    StringAnalysis.clearResolvers();
    StringAnalysis.addResolver(new Resolver() {
      public MethodResolution resolveMethod(InvokeExpr e, SootMethod m) {
        String sig = m.getSignature();
        if (sig.equals("<dk.brics.xact.XML: java.lang.String getString(java.lang.String)>") ||
            sig.equals("<dk.brics.xact.XML: java.lang.String getString()>")) {
          Automaton a = Datatypes.get("string"); // TODO: should use the XML graph (run twice!?)
View Full Code Here

TOP

Related Classes of dk.brics.string.external.Resolver

Copyright © 2018 www.massapicom. 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.