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

org.jruby.java.invokers.FieldMethodOne Maven / Gradle / Ivy

There is a newer version: 9.4.7.0
Show newest version
package org.jruby.java.invokers;

import java.lang.reflect.Field;
import org.jruby.Ruby;
import org.jruby.RubyModule;
import org.jruby.internal.runtime.methods.JavaMethod.JavaMethodOne;
import org.jruby.runtime.Visibility;

public abstract class FieldMethodOne extends JavaMethodOne {
    Field field;

    FieldMethodOne(String name, RubyModule host, Field field) {
        super(host, Visibility.PUBLIC);
        if (!Ruby.isSecurityRestricted()) {
            field.setAccessible(true);
        }
        this.field = field;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy