Aliases: $,jobjRef-method $,jclassName-method $<-,jobjRef-method $<-,jclassName-method names,jobjRef-method names,jclassName-method names,jarrayRef-method names,jrectRef-method .DollarNames.jobjRef .DollarNames.jclassName .DollarNames.jarrayRef .DollarNames.jrectRef
Keywords: interface
### ** Examples ## Don't show: .jinit() ## End(Don't show) v <- new(J("java.lang.String"), "Hello World!") v$length()
[1] 12
v$indexOf("World")
[1] 6
names(v)
[1] "CASE_INSENSITIVE_ORDER" "equals(" "length()" [4] "toString()" "hashCode()" "getChars(" [7] "compareTo(" "compareTo(" "indexOf(" [10] "indexOf(" "indexOf(" "indexOf(" [13] "valueOf(" "valueOf(" "valueOf(" [16] "valueOf(" "valueOf(" "valueOf(" [19] "valueOf(" "valueOf(" "valueOf(" [22] "codePoints()" "isEmpty()" "charAt(" [25] "codePointAt(" "codePointBefore(" "codePointCount(" [28] "offsetByCodePoints(" "getBytes(" "getBytes(" [31] "getBytes(" "getBytes()" "contentEquals(" [34] "contentEquals(" "equalsIgnoreCase(" "compareToIgnoreCase(" [37] "regionMatches(" "regionMatches(" "startsWith(" [40] "startsWith(" "endsWith(" "lastIndexOf(" [43] "lastIndexOf(" "lastIndexOf(" "lastIndexOf(" [46] "substring(" "substring(" "subSequence(" [49] "concat(" "replace(" "replace(" [52] "matches(" "contains(" "replaceFirst(" [55] "replaceAll(" "split(" "split(" [58] "join(" "join(" "toLowerCase()" [61] "toLowerCase(" "toUpperCase(" "toUpperCase()" [64] "trim()" "strip()" "stripLeading()" [67] "stripTrailing()" "isBlank()" "lines()" [70] "chars()" "toCharArray()" "format(" [73] "format(" "copyValueOf(" "copyValueOf(" [76] "intern()" "repeat(" "wait(" [79] "wait(" "wait()" "getClass()" [82] "notify()" "notifyAll()"
## Don't show: stopifnot( v$length() == 12L ) stopifnot( v$indexOf("World") == 6L ) ## End(Don't show) J("java.lang.String")$valueOf(10)
[1] "10.0"
Double <- J("java.lang.Double") # the class pseudo field - instance of Class for the associated class # similar to java Double.class Double$class
[1] "Java-Object{class java.lang.Double}"
## Don't show: stopifnot( Double$class$getName() == "java.lang.Double" ) ## End(Don't show)