示例#1
0
 public ParamInfo(TypeInfo Type, string Name = null, Modifier m = 0)
 {
     this.Type = Type;
     this.Name = Name;
     IsParamArray  = (m & Modifier.Params) != 0;
     CanBeNull     = (m & Modifier.CanBeNull) != 0;
 }
示例#2
0
 static bool IsObjectReferenceType(TypeInfo type)
 {
     switch (type.Type) {
         case "jobject":
         case "jclass":
         case "jthrowable":
         case "jstring":
         case "jarray":
         case "jweak":
             return true;
     }
     if (type.Type.StartsWith ("j") && type.Type.EndsWith("Array"))
         return true;
     return false;
 }
示例#3
0
 public ParamInfo(TypeInfo Type, string Name, bool IsParamArray)
 {
     this.Type = Type;
     this.Name = Name;
     this.IsParamArray = IsParamArray;
 }
示例#4
0
 static bool IsMemberID(TypeInfo type)
 {
     switch (type.Type) {
         case "jfieldID":
         case "jmethodID":
         case "jstaticfieldID":
         case "jstaticmethodID":
             return true;
     }
     return false;
 }