java.lang.Object
ortus.boxlang.runtime.bifs.BIF
ortus.boxlang.runtime.bifs.global.decision.IsObject

@BoxBIF(description="Check if value is an object") public class IsObject extends BIF
  • Constructor Details

    • IsObject

      public IsObject()
      Constructor
  • Method Details

    • _invoke

      public Object _invoke(IBoxContext context, ArgumentsScope arguments)
      Determines whether a value is an object.

      True conditions are:

      • Box Class instances are "objects"
      • All other classes that represent a Boxlang type are NOT "objects" (query, array, struct, XML, etc)
      • These JDK classes which are used for "simple" BoxLang types are also not "objects" (String, Number, Boolean)
      • Every other Java class is an "object"
      Specified by:
      _invoke in class BIF
      Parameters:
      context - The context in which the BIF is being invoked.
      arguments - Argument scope defining the value to test.
      Returns:
      True if the value is an object, false otherwise.
    • isObject

      public static boolean isObject(Object obj)
      See above
      Parameters:
      obj - The value to test
      Returns:
      True if the value is an object, false otherwise.