All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jruby.runtime.backtrace.FrameType Maven / Gradle / Ivy

There is a newer version: 9.4.7.0
Show newest version
package org.jruby.runtime.backtrace;

import java.util.HashMap;
import java.util.Map;
import org.jruby.evaluator.ASTInterpreter;
import org.jruby.interpreter.Interpreter;

public enum FrameType {
    METHOD, BLOCK, EVAL, CLASS, ROOT;
    public static final Map INTERPRETED_FRAMES = new HashMap();
    static {
        INTERPRETED_FRAMES.put(ASTInterpreter.class.getName() + ".INTERPRET_METHOD", FrameType.METHOD);
        INTERPRETED_FRAMES.put(ASTInterpreter.class.getName() + ".INTERPRET_EVAL", FrameType.EVAL);
        INTERPRETED_FRAMES.put(ASTInterpreter.class.getName() + ".INTERPRET_CLASS", FrameType.CLASS);
        INTERPRETED_FRAMES.put(ASTInterpreter.class.getName() + ".INTERPRET_BLOCK", FrameType.BLOCK);
        INTERPRETED_FRAMES.put(ASTInterpreter.class.getName() + ".INTERPRET_ROOT", FrameType.ROOT);
        INTERPRETED_FRAMES.put(Interpreter.class.getName() + ".INTERPRET_METHOD", FrameType.ROOT);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy