InstanceOf

InstanceOf[javaobject, javaclass]
gives True if javaobject is an instance of the class or interface javaclass, or a subclass. Otherwise, it returns False.
InstanceOf[javaobject, "classname"]
gives True if javaobject is an instance of the named class or interface, or a subclass.
  • InstanceOf mimics the behavior of the Java language's instanceof operator.
© 2008 Wolfram Research, Inc. japanese.gif