Package kilim.mirrors

Examples of kilim.mirrors.Detector


    }

    public ArrayList<MethodFlow> analyze(boolean forceAnalysis) throws KilimException {
        // cr.accept(this, ClassReader.SKIP_DEBUG);

        Detector save = Detector.setDetector(detector);
        try {
            cr.accept(this, /*flags*/ClassReader.SKIP_FRAMES);
            for (Object o : this.fields) {
                FieldNode fn = (FieldNode) o;
                if (fn.name.equals(Constants.WOVEN_FIELD)) {
View Full Code Here


     * @see #weave(List) for run-time weaving.
     */
    public static void main(String[] args) throws IOException {
        // System.out.println(System.getProperty("java.class.path"));

        Detector detector = Detector.DEFAULT;

        String currentName = null;
        for (String name : parseArgs(args)) {
            try {
                if (name.endsWith(".class")) {
View Full Code Here

        this(Thread.currentThread().getContextClassLoader());
    }
   
    public Weaver(ClassLoader cl) {
        mirrors = new CachedClassMirrors(cl);
        detector = new Detector(mirrors);
    }
View Full Code Here

     */
    public List<ClassInfo> weave(List<ClassInfo> classes) throws KilimException {
        // save the detector attached to this thread, if any. It will be restored
        // later.
        ArrayList<ClassInfo> ret = new ArrayList<ClassInfo>(classes.size());
        Detector origDetector = Detector.getDetector();
        Detector.setDetector(detector); // / set thread local detector.
        try {
            // First cache all the method signatures from the supplied classes to allow
            // the weaver to lookup method signatures from mutually recursive classes.
            for (ClassInfo cl : classes) {
View Full Code Here

public class ClassWriter extends org.objectweb.asm.ClassWriter {
  private final Detector detector;
 
  public ClassWriter(final int flags, final ClassLoader classLoader) {
    super(flags);
    this.detector = new Detector(new RuntimeClassMirrors(classLoader));
  }
View Full Code Here

TOP

Related Classes of kilim.mirrors.Detector

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.