java/extensions/java/lang/String.st
author Jan Vrany <jan.vrany@labware.com>
Tue, 09 Aug 2022 14:33:27 +0100
changeset 4012 117835eb9839
parent 2380 9195eccdcbd9
permissions -rw-r--r--
Remove Mauve tests See previous commit for explanation.

"{ Package: 'stx:libjava' }"

!

!(Java classForName:'java.lang.String') class methodsFor:'queries'!

javaWrap: object
    | jstring |

    object isNil ifTrue:[ ^ nil ].
    jstring := self basicNew.
    jstring perform: #'<init>([C)V' with: object.
    ^jstring
! !
!(Java classForName:'java.lang.String') class methodsFor:'queries'!

javaWrapRequired
    "Returns true, if a #javaWrap: has to be called
     prior an instance of Smalltalk object is passed 
     as an argument to Java method, whoose formal tyoe
     is the receiver."

    ^true
! !