Short.hx 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package java.lang;
  2. @:native("") // make sure the generator won't see this
  3. @:forward abstract Short(ShortClass) from ShortClass to ShortClass
  4. {
  5. @:to @:extern inline public function toShort():java.types.Int16
  6. return this.shortValue();
  7. @:from @:extern inline public static function fromShort(b:java.types.Int16):Short
  8. return ShortClass.valueOf(b);
  9. @:extern public static var MAX_VALUE(get,never):java.types.Int16;
  10. @:extern static inline function get_MAX_VALUE():java.types.Int16 return ShortClass.MAX_VALUE;
  11. @:extern public static var MIN_VALUE(get,never):java.types.Int16;
  12. @:extern static inline function get_MIN_VALUE():java.types.Int16 return ShortClass.MIN_VALUE;
  13. @:extern public static var SIZE(get,never):Int;
  14. @:extern static inline function get_SIZE():Int return ShortClass.SIZE;
  15. @:extern public static var TYPE(get,set):Class<java.lang.Short>;
  16. @:extern static inline function get_TYPE():Class<java.lang.Short> return ShortClass.TYPE;
  17. @:extern static inline function set_TYPE(val:Class<java.lang.Short>):Class<java.lang.Short> return ShortClass.TYPE = val;
  18. @:extern @:overload inline public static function compare(param1:java.types.Int16, param2:java.types.Int16):Int return ShortClass.compare(param1, param2);
  19. @:extern @:overload inline public static function decode(param1:String):Short return ShortClass.decode(param1);
  20. @:extern @:overload inline public static function parseShort(param1:String, param2:Int):java.types.Int16 return ShortClass.parseShort(param1, param2);
  21. @:extern @:overload inline public static function reverseBytes(param1:java.types.Int16):java.types.Int16 return ShortClass.reverseBytes(param1);
  22. @:extern @:overload inline public static function _toString(param1:java.types.Int16):String return ShortClass._toString(param1);
  23. @:extern @:overload inline public static function valueOf(param1:String, param2:Int):Short return ShortClass.valueOf(param1, param2);
  24. }
  25. @:native("java.lang.Short") extern class ShortClass extends Number implements Comparable<Short>
  26. {
  27. @:overload function new(param1 : java.types.Int16) : Void;
  28. @:overload @:throws("java.lang.NumberFormatException") function new(param1 : String) : Void;
  29. @:overload function compareTo(param1 : Short) : Int;
  30. @:overload function compareTo(param1 : Dynamic) : Int;
  31. @:overload function equals(param1 : Dynamic) : Bool;
  32. @:overload function hashCode() : Int;
  33. @:overload function toString() : String;
  34. @:final static var MAX_VALUE(default,null) : java.types.Int16;
  35. @:final static var MIN_VALUE(default,null) : java.types.Int16;
  36. @:final static var SIZE(default,null) : Int;
  37. @:final static var TYPE : Class<Short>;
  38. @:overload static function compare(param1 : java.types.Int16, param2 : java.types.Int16) : Int;
  39. @:overload @:throws("java.lang.NumberFormatException") static function decode(param1 : String) : Short;
  40. @:overload @:throws("java.lang.NumberFormatException") static function parseShort(param1 : String, param2 : Int) : java.types.Int16;
  41. @:overload @:throws("java.lang.NumberFormatException") static function parseShort(param1 : String) : java.types.Int16;
  42. @:overload static function reverseBytes(param1 : java.types.Int16) : java.types.Int16;
  43. @:native("toString") @:overload static function _toString(param1 : java.types.Int16) : String;
  44. @:overload @:throws("java.lang.NumberFormatException") static function valueOf(param1 : String, param2 : Int) : Short;
  45. @:overload static function valueOf(param1 : java.types.Int16) : Short;
  46. @:overload @:throws("java.lang.NumberFormatException") static function valueOf(param1 : String) : Short;
  47. }
  48. @:realPath("java.lang.Short_ShortCache") @:javaNative @:native("java.lang.Short$ShortCache") @:javaCanonical("java.lang","Short.ShortCache") extern class Short_ShortCache {
  49. }