Sha256: 8471a4f817e5e3950135a87b21f50235c3e4a529809f3930dedaafbe96a5471a

Contents?: true

Size: 1.92 KB

Versions: 12

Compression:

Stored size: 1.92 KB

Contents

package org.cx4a.rsense.ruby;

public class Frame {
    private RubyModule cbase;
    private String name;
    private IRubyObject self;
    private Block block;
    private Visibility visibility;
    private Frame prev;
    private Object tag;

    public Frame(RubyModule cbase, String name, IRubyObject self, Block block, Visibility visibility, Frame prev) {
        this.cbase = cbase;
        this.name = name;
        this.self = self;
        this.block = block;
        this.visibility = visibility;
        this.prev = prev;
    }

    public RubyModule getModule() {
        return cbase;
    }

    public void setModule(RubyModule cbase) {
        this.cbase = cbase;
    }

    public String getName() {
        return name;
    }

    public IRubyObject getSelf() {
        return self;
    }

    public Block getBlock() {
        return block;
    }

    public Visibility getVisibility() {
        return visibility;
    }

    public void setVisibility(Visibility visibility) {
        this.visibility = visibility;
    }

    public Frame getPrevious() {
        return prev;
    }

    public Object getTag() {
        return tag;
    }

    public void setTag(Object tag) {
        this.tag = tag;
    }

    @Override
    public String toString() {
        String s = "[" + name + " " + cbase + "]";
        if (prev != null) {
            s += " < " + prev.toString();
        }
        return s;
    }

    @Override
    public int hashCode() {
        int code = 0;
        code ^= name.hashCode();
        code ^= cbase.hashCode();
        code ^= self.hashCode();
        return code;
    }

    @Override
    public boolean equals(Object other) {
        if (this == other) {
            return true;
        }

        if (!(other instanceof Frame)) {
            return false;
        }

        Frame o = (Frame) other;

        return name.equals(o.name)
            && cbase.equals(o.cbase)
            && self.equals(o.self);
    }
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rsense-core-0.6.6 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.6.5 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.6.4 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.6.2 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.6.1 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.6.0 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.9 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.8 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.6 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.2 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.1 src/org/cx4a/rsense/ruby/Frame.java
rsense-core-0.5.0 src/org/cx4a/rsense/ruby/Frame.java