org.jruby.java.invokers.FieldMethodOne Maven / Gradle / Ivy
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 {
final Field field;
FieldMethodOne(String name, RubyModule host, Field field) {
super(host, Visibility.PUBLIC);
if (!Ruby.isSecurityRestricted()) {
field.setAccessible(true);
}
this.field = field;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy