Example #1
0
 private void EnsureClassInfoLoaded()
 {
     if (_fields == null)
     {
         ClassInfo classInfo = _registry.InfoFor(_class);
         if (classInfo == null)
         {
             _fields = EmptyFields;
             return;
         }
         _superClass = classInfo.SuperClass();
         _isAbstract = classInfo.IsAbstract();
         FieldInfo[] fieldInfo = classInfo.FieldInfo();
         if (fieldInfo == null)
         {
             _fields = EmptyFields;
             return;
         }
         _fields = new SelfField[fieldInfo.Length];
         for (int idx = 0; idx < fieldInfo.Length; idx++)
         {
             _fields[idx] = SelfFieldFor(fieldInfo[idx]);
         }
     }
 }
Example #2
0
 public virtual bool IsPublic()
 {
     return(_registry.InfoFor(_selfclass.GetJavaClass()).FieldByName(_name).IsPublic());
 }