Added Class.getGenericSuperclass() and improved Member subclasses. Fixed Makefile on OS X

This commit is contained in:
Ilya Mizus
2014-10-09 02:32:56 +04:00
parent 998f99af44
commit 85fec988d5
6 changed files with 49 additions and 17 deletions

View File

@ -17,7 +17,7 @@ import avian.Classes;
import java.lang.annotation.Annotation;
public class Field<T> extends AccessibleObject {
public class Field<T> extends AccessibleObject implements Member {
private static final int VoidField = 0;
private static final int ByteField = 1;
private static final int CharField = 2;
@ -51,6 +51,10 @@ public class Field<T> extends AccessibleObject {
public int getModifiers() {
return vmField.flags;
}
public boolean isSynthetic() {
return (vmField.flags & ACC_SYNTHETIC) != 0;
}
public String getName() {
return getName(vmField);