instanceof信息详情
n.实例;运算符
Naked" type parameters can't be used in casts or instanceof operations.───不能在数据类型转换或instance of操作中使用“外露”类型参数。
Naked" parameters in casts or instanceof operations.───数据类型转换或instance of操作中的“外露”参数。
You can check them with type hinting and instanceof tests.───可以用类型提示和instance of测试来检查它们。
If required, the instanceof operator can be used to determine the specific destination subtype.───如果需要,可以使用instanceof运算符来确定指定的目的地子类型。
Similarly, instanceof will check that the operand is an instanceof the bound of the parameter.───同样,instanceof将检查操作数是否是参数界限的instanceof。
Schema awareness allows instance of to confirm the type of a node against all types defined in the schema.───模式感知允许instanceof根据模式中定义的所有类型确认节点的类型。
The instanceof operator resolves to true if the given object is an instance of the given class.───如果给定对象是给定类的实例,则instanceof操作符解析为真。
I could easily add support for reporting casts, instanceof tests, and catch blocks by implementing the appropriate methods in VerboseEditor.───通过在VerboseEditor中实现适当的方法,可以容易地增加对报告强制类型转换、instanceof检查和catch块的支持。
One way would be to wrap each cast in an instanceof check.───一种方法是将每个类型强制转换都包在instanceof检查语句中。