In such cases, you can create a wrapper method that calls these GuiTestObject methods.
在这种情况下,可以创建封装器方法来调用这些GuiTestObject方法。
The AuthorizationManager implementation of the ACLPerspectives constructors is a straightforward wrapper method.
ACLPerspective构造函数的AuthorizationManager实现是一个简单明了的包装方法。
Here the wrapper method just saves the current time, then calls the renamed original method and prints a time report before returning the result of the call to the original method.
这里包装器方法只是保存当前时间,然后调用改名后的原方法,并在返回调用原方法的结果之前打印时间报告。
If you invoke a preexisting function that can throw a checked exception, you should write a wrapper function that catches and handles that exception; then, invoke the wrapper method from XSLT instead.
如果您调用一个可能抛出检查异常的已有函数,您应编写一个包装器函数,捕获并处理此类异常,然后在XSLT中调用包装器方法。
If you invoke a preexisting function that can throw a checked exception, you should write a wrapper function that catches and handles that exception; then, invoke the wrapper method from XSLT instead.
如果您调用一个可能抛出检查异常的已有函数,您应编写一个包装器函数,捕获并处理此类异常,然后在XSLT中调用包装器方法。
应用推荐