corda/classpath/java/lang/reflect/Field.java

38 lines
765 B
Java
Raw Normal View History

package java.lang.reflect;
public class Field<T> extends AccessibleObject {
private byte vmFlags;
private byte code;
private short flags;
private short offset;
private byte[] name;
private byte[] spec;
private Class<T> class_;
private Field() { }
public boolean isAccessible() {
return (vmFlags & Accessible) != 0;
}
public void setAccessible(boolean v) {
if (v) vmFlags |= Accessible; else vmFlags &= ~Accessible;
}
2007-07-21 20:44:39 +00:00
public Class<T> getDeclaringClass() {
return class_;
}
public int getModifiers() {
return flags;
}
public String getName() {
return new String(name, 0, name.length - 1, false);
}
2007-07-24 01:44:20 +00:00
public native Object get(Object instance);
2007-07-27 23:56:19 +00:00
public native void set(Object instance, Object value);
}