Beispiel #1
0
 internal static string GenNativeDeleteMethod(GenProperty prop)
 {
     if (!prop.CanWrite)
     {
         return(null);
     }
     return(String.Format("\tprivate final native void delete{0}() /*-{{ delete this.{0}; }}-*/;", prop.Name));
 }
 public EnumerableLocalClassPGen(GenProperty prop)
 {
     if (prop.CanWrite)
     {
         throw new ArgumentException("IEnumerable interface is readonly. CanWrite must be false.", "prop");
     }
     _prop = prop;
 }
Beispiel #3
0
 internal static string GenNativeGetIsNullMethod(GenProperty prop)
 {
     if (!prop.CanRead)
     {
         return(null);
     }
     return(String.Format("\tprivate final native boolean get{0}IsNull() /*-{{ return this.{0} == null; }}-*/;", prop.Name));
 }
Beispiel #4
0
 internal static string GenNativeGetMethod(GenProperty prop, string javaDatatype, bool isPublic, string javaMethodName, bool overrides)
 {
     if (!prop.CanRead)
     {
         return(null);
     }
     return(String.Format("\t{2} final native {1} {3}() /*-{{ return this.{0} }}-*/;", prop.Name, javaDatatype, (overrides ? "@Override " : "") + (isPublic ? "public" : "private"), javaMethodName));
 }
Beispiel #5
0
 internal static string GenNativeSetIsNullMethod(GenProperty prop)
 {
     if (!prop.CanWrite)
     {
         return(null);
     }
     return(String.Format("\tprivate final native void set{0}IsNull() /*-{{ this.{0} = null; }}-*/;", prop.Name));
 }
Beispiel #6
0
 internal static string GenInterfaceGetMethod(GenProperty prop, string javaDatatype, string javaMethodName)
 {
     if (!prop.CanRead)
     {
         return(null);
     }
     return(String.Format("\t{0} {1}();", javaDatatype, javaMethodName));
 }
Beispiel #7
0
 internal static string GenInterfaceSetMethod(GenProperty prop, string javaDatatype, string javaMethodName, GenClass genClass)
 {
     if (!prop.CanWrite)
     {
         return(null);
     }
     return(String.Format("\tI{2} {1}({0} val);", javaDatatype, javaMethodName, genClass.Name));
 }
Beispiel #8
0
 internal static string GenNativeSetMethod(GenProperty prop, string javaDatatype, bool isPublic, string javaMethodName, GenClass genClass)
 {
     if (!prop.CanWrite)
     {
         return(null);
     }
     if (isPublic)
     {
         return(String.Format("\t@Override public final native {3} {2}({1} val) /*-{{ this.{0} = val; return this; }}-*/;", prop.Name, javaDatatype, javaMethodName, genClass.Name));
     }
     return(String.Format("\tprivate final native void {2}({1} val) /*-{{ this.{0} = val; }}-*/;", prop.Name, javaDatatype, javaMethodName));
 }
 public NullDateKeyPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #10
0
 public BooleanPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #11
0
 public EnumArrayPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #12
0
 public NullNumberPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #13
0
 public LocalClassArrayPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #14
0
 internal static string GenNativeGetMethod(GenProperty prop, string javaDatatype, bool isPublic, bool overrides)
 {
     return(GenNativeGetMethod(prop, javaDatatype, isPublic, String.Format("get{0}", prop.Name), overrides));
 }
Beispiel #15
0
 set => SetValue(GenProperty, value);
 public UnsupportedPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #17
0
 internal static string GenStubGetMethod(GenProperty prop, string javaDatatype)
 {
     return(String.Format("\t{2}public {1} get{0}() {{ return this._{0}; }}", prop.Name, javaDatatype, prop.CanRead ? "@Override " : ""));
 }
Beispiel #18
0
 internal static string GenNativeSetMethod(GenProperty prop, string javaDatatype, bool isPublic, GenClass genClass)
 {
     return(GenNativeSetMethod(prop, javaDatatype, isPublic, String.Format("set{0}", prop.Name), genClass));
 }
Beispiel #19
0
 public NumberArrayPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #20
0
 internal static string GenNativeSetMethod(GenProperty prop, string javaDatatype, GenClass genClass)
 {
     return(GenNativeSetMethod(prop, javaDatatype, true, genClass));
 }
Beispiel #21
0
 internal static string GenSetCall(GenProperty prop, string javaExpression)
 {
     return(GenSetCall(String.Format("set{0}", prop.Name), javaExpression));
 }
Beispiel #22
0
 internal static string GenNativeGetMethod(GenProperty prop, string javaDatatype, bool isPublic, string javaMethodName)
 {
     return(GenNativeGetMethod(prop, javaDatatype, isPublic, javaMethodName, isPublic));
 }
Beispiel #23
0
 public NullEnumPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #24
0
 internal static string GenStubSetMethod(GenProperty prop, string javaDatatype, GenClass genClass)
 {
     return(String.Format("\t{3}public I{2} set{0}({1} val) {{ this._{0} = val; return this; }}", prop.Name, javaDatatype, genClass.Name, prop.CanWrite ? "@Override " : ""));
 }
Beispiel #25
0
 public Int32PGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #26
0
 internal static string GenNativeGetMethod(GenProperty prop, string javaDatatype)
 {
     return(GenNativeGetMethod(prop, javaDatatype, true));
 }
Beispiel #27
0
 public LongPGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #28
0
 internal static string GenInterfaceGetMethod(GenProperty prop, string javaDatatype)
 {
     return(GenInterfaceGetMethod(prop, javaDatatype, String.Format("get{0}", prop.Name)));
 }
Beispiel #29
0
 public BytePGen(GenProperty prop)
 {
     _prop = prop;
 }
Beispiel #30
0
 internal static string GenStubPrivateMember(GenProperty prop, string javaDatatype, string initialValue)
 {
     return(String.Format("\tprivate {1} _{0} = {2};", prop.Name, javaDatatype, initialValue));
 }