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

org.jruby.truffle.language.backtrace.Activation Maven / Gradle / Ivy

/*
 * Copyright (c) 2014, 2016 Oracle and/or its affiliates. All rights reserved. This
 * code is released under a tri EPL/GPL/LGPL license. You can use it,
 * redistribute it and/or modify it under the terms of the:
 *
 * Eclipse Public License version 1.0
 * GNU General Public License version 2
 * GNU Lesser General Public License version 2.1
 */
package org.jruby.truffle.language.backtrace;

import com.oracle.truffle.api.nodes.Node;
import org.jruby.truffle.language.methods.InternalMethod;

public class Activation {

    public static final Activation OMITTED_LIMIT = new Activation(null, null);
    public static final Activation OMITTED_UNUSED = new Activation(null, null);

    private final Node callNode;
    private final InternalMethod method;

    public Activation(Node callNode, InternalMethod method) {
        this.callNode = callNode;
        this.method = method;
    }

    public Node getCallNode() {
        return callNode;
    }

    public InternalMethod getMethod() {
        return method;
    }

    @Override
    public String toString() {
        return "Activation @ " + callNode + " " + method;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy