首页 / 词典 / good

instanceof

  • 网络操作符;实例;运算符;关键字;另外还有比较运算符
instanceofinstanceof
  1. You can check them with type hinting and instanceof tests .

    可以用类型提示和instanceof测试来检查它们。

  2. If required , the instanceof operator can be used to determine the specific destination subtype .

    如果需要,可以使用instanceof运算符来确定指定的目的地子类型。

  3. The instanceof operator resolves to true if the given object is an instance of the given class .

    如果给定对象是给定类的实例,则instanceof操作符解析为真。

  4. In some cases , it may be sensible to use an instanceof check prior to doing a class cast .

    在某些情况下,在做类型转换之前用instanceof进行检查是有意义的。

  5. You can even check that a certain method or property is available , with a finer granularity than through any instanceof check

    你甚至可以检查某个特定的方法或者属性是否可用,比使用instanceof来检查的粒度要小的多

  6. Other predicates are defined to make sure that the property provided as a parameter is an association end ( again , using the InstanceOf constraint ) .

    其他预声明的定义是为了保证作为参数提供的属性是一个关联结尾(还是以InstanceOf为限制)。

  7. I could easily add support for reporting casts , instanceof tests , and catch blocks by implementing the appropriate methods in VerboseEditor .

    通过在VerboseEditor中实现适当的方法,可以容易地增加对报告强制类型转换、instanceof检查和catch块的支持。

  8. The instanceof function provides a good way of checking type , but you can also roll object type checking into the method signature itself by using type hints in the argument list .

    虽然instanceof功能提供了一种检查类型的好方法,但您还可以通过在参数列表中使用类型提示,来将对象类型检查滚动到方法签名自身中。

  9. You can verify it manually with the instanceof operator , a handy tool introduced with PHP V5 that sits between an object instance and a class name .

    可以用instanceof操作符来手动验证这一点,该操作符是PHPV5引入的介于对象实例和类名之间的一个便捷工具。

  10. Similarly , instanceof checks on naked type parameters will result in an " unchecked " warning at compile time and the check will not occur as expected at runtime .

    同样,对“外露”类型参数的instanceof检查将在编译时产生“unchecked”警告,而且检查将不会如期在运行时进行。

  11. In your language , you will make actor and the equal sign ( = ) reserved tokens in the language , much as the words if and instanceof are reserved tokens with particular meaning within the Java language .

    在您的语言中,您要将actor和等号(=)作为该语言中的保留标记,尽管字if和instanceof在Java语言中都是带有特殊意义的保留标记。