java/extensions/java/lang/Short.st
branchdevelopment
changeset 2006 c0598cab5f15
parent 1997 8bcca8a0e8a1
child 2380 9195eccdcbd9
equal deleted inserted replaced
2005:f5f046bfdfc6 2006:c0598cab5f15
     1 "{ Package: 'stx:libjava' }"
     1 "{ Package: 'stx:libjava' }"
     2 
     2 
     3 !
     3 !
     4 
     4 
     5 !java/lang/Short class methodsFor:'queries'!
     5 !(Java classForName:'java.lang.Short') class methodsFor:'queries'!
     6 
     6 
     7 javaWrap: object
     7 javaWrap: object
     8 	|inst|
     8 	|inst|
     9     inst := self basicNew.
     9     inst := self basicNew.
    10     inst perform: #'<init>(S)V' with: object.
    10     inst perform: #'<init>(S)V' with: object.
    11 	^ inst.
    11 	^ inst.
    12 ! !
    12 ! !
    13 !java/lang/Short class methodsFor:'queries'!
    13 !(Java classForName:'java.lang.Short') class methodsFor:'queries'!
    14 
    14 
    15 javaWrapRequired
    15 javaWrapRequired
    16     "Returns true, if a #javaWrap: has to be called
    16     "Returns true, if a #javaWrap: has to be called
    17      prior an instance of Smalltalk object is passed 
    17      prior an instance of Smalltalk object is passed 
    18      as an argument to Java method, whoose formal tyoe
    18      as an argument to Java method, whoose formal tyoe