但是,如果使用PHPV5 的话,可以将对象类型检查构建到类或方法声明中。
With PHP V5, however, you can build object type checking right into the class or method declaration.
确定GUI组件类型的一种方法是检查源码。
One way to determine GUI component types is by inspecting the source code.
您可以依赖add方法内部的类型检查,但这并不优雅而且不固定。
You could fall back on type checking inside the add method, but that is not elegant and inflexible.
静态类型检查会防止把非string对象传递给这个方法。
Static type checking will prevent non-Strings from being passed to this method.
在调用方法中第一次遇到Dictionary对象时,可以在使用它之前检查它的类型。
The first time you encounter a Dictionary object in a calling method, you can check its type before working with it.
最后,严密的方法检查用于确保从JNDI检索到的对象可以被映射为所需的对象类型CustomerHome。
Finally, the narrow method checks to make sure the retrieved object from JNDI can be cast into the intended object type, CustomerHome.
例如,在Jam中,禁止程序员将this作为参数传递给方法;无法对这样的调用进行类型检查。
For example, in Jam, the programmer is not allowed to pass this as an argument to a method; there is no way to type check such calls.
当调用验证方法时,命令框架会检查参数类型和所需的参数,这样,稍后就无需调用super . validate 。
When the validate method is called, the parameter types and the required parameters are checked by the command framework, so there is no need to call super.validate later.
虽然 instanceof功能提供了一种检查类型的好方法,但您还可以通过在参数列表中使用类型提示,来将对象类型检查滚动到方法签名自身中。
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.
它只使用单个的visit (IPDOMNode node)方法,该方法检查访问到的节点是否属于某一个类型。
It USES only a single visit (IPDOMNode node) method, which checks if the visited node is of a certain type.
例如,它可以帮你测试自定义的异常类,验证自定义类型的Equals和GetHashCode方法是否一致,以及检查IList的不变性。
For example, they can help you test your custom Exception class, verify that your datatype's Equals & GetHashCode are consistent, and check IList invariants.
可以抛出您需要的任何类型的异常(已检查、运行时或错误),只要方法签名支持它即可。
You can throw any kind of exception you like - checked, runtime, or error - as long as the method signature supports it.
本专栏的前一期文章指出了一些常见的输入数据类型以及检查它们的方法。
The previous installment in this column identified some common input data types and how to check them.
很不幸的是,JDBC 的访问SQL的方法丢失了类型安全,因为这是一个调用级别的接口,因此它限制只有在运行时才能检查字符串。
Type safety is sadly missing from JDBC's approach to accessing SQL, by the way, because it is a call-level interface and is thus restricted to strings that can only be checked at runtime.
如何检查是否存在属性扩展方法中的类型?
How to check if property exists in Type in an extension method?
如何检查类型的通用对象的方法吗?
因为mixin的父类可能用类型参数被实例化,因此类型检查器就不能确定意外方法覆盖的所有情况。
Because a mixin's parent may be instantiated with a type parameter, there is no way for the type checker to determine all cases of accidental method overriding.
对于方法调用指令,可以使用BytecodeEngineeringLibrary (BCEL)类来提取方法声明抛出的已检查异常的类型。
For the method call instructions, you use Bytecode Engineering Library (BCEL) classes to extract the types of checked exceptions the method is declared to throw.
DebasishGhosh提倡使用这种解决方法,而不是试图实现动态类型检查。
Debasish Ghosh advocates for using this kind of solutions rather than trying to achieve dynamic type checking.
策略提供者是策略消费者的潜在观察者,它会查找RFSSWeb服务,检查请求者的类型,注册一个回调方法,以执行特定的策略。
The strategy provider, as a potential observer of a strategy consumer, looks for RFSS web services, checks the type of request, and registers for a callback to execute the particular strategy.
通过在VerboseEditor中实现适当的方法,可以容易地增加对报告强制类型转换、instance of检查和catch块的支持。
I could easily add support for reporting casts, instanceof tests, and catch blocks by implementing the appropriate methods in VerboseEditor.
方法对374例氨苄青霉素药疹患者初次发病的潜伏期、症状、皮疹类型、实验室检查、治疗及结果进行分析。
Methods Analysis and arrangements on initial period of incubation and symptoms, rash type, laboratory examinations, and results of treatment of 374 cases of ampicillin drug rash.
皮肤科医师会检查类型的皮肤和你的痤疮疤痕,他将在此基础推荐某一方法去除痤疮疤痕。
The dermatologist will check the type of your skin and on the acne scar and on that basis he would recommend a particular method of acne scar removal.
不管使用何种影像学检查方法,也不管何种类型的椎体滑移,上位椎体前滑移程度都可以用以下两种方法中的一种进行测量。
Regardless of the imaging method and the type of spondylolisthesis, the forward slip of the vertebra above can be measured by one of two methods.
本文介绍Z规格说明类型检查器的实现方法,并对类型检查的环境、一致化方法、替换策略和类型变量的应用等问题进行讨论。
This paper introduces the implementation of a Z specification type checker, meanwhile the environment of type check, unification method, substitution strategy are also discussed.
中学的工作:虽然关于其第一份工作时,一切还提供了一个方法来检查任何错误内存类型。
Secondary job: While it goes about its first job, it also offers a way to check the memory type for any errors.
您可以按处理任何托管类型的相同方式来检查COM类型、激活实例或对COM对象调用方法。
You can inspect COM types, activate instances, and invoke methods on the COM object the same way you do for any managed type.
结论PPNAD是柯兴综合征的一种少见类型,诊断有赖于内分泌检查结果和病理学诊断,手术是治愈本病的有效方法。
Conclusion PPNAD is a rare type of Cushing syndrome. Diagnose depends on endocrine exams and pathological results. Operation is the effective method for the disease.
引入类型变量和相应的类型检查方法,就可以将其类型系统扩充为多态类型系统。
With type variables, the original type system can be augmented and become a polymorphic type system.
方法:用免疫组化abc法,对不同类型胃癌进行对比检查。
Methods: Immunohistochemical staining was performed in various types of stomach cancer by a standard avidin-biotin-peroxidase (ABC) technique.
应用推荐