为了简单起见,这个例子中没有显示对任何接口方法的调用。
For the sake of simplicity, this example does not show calls to any interface methods.
通过调用每个元素的不同方法,您可以用任何自己喜欢的格式来显示堆栈转储信息。
By calling the various methods of each element, you can display the stack dump in any format you'd like.
清单5显示了生成对包装方法的调用并保存结果(如果有的话)的代码。
Listing 5 shows the code to generate the call to the wrapped method and save the result (if any).
如果需要显示注释,应该调用该方法来单独访问每个注释节点。
If you need to show them, you should call this method and visit each comment node individually.
清单3显示的是如何调用该方法。
大约一年之后,我增加了对显示与调用所有属性和方法的支持。
About a year later, I've added support for all properties and method display and invocation.
第1部分中的理论部分显示了远程调用的不同阶段,得出减少远程调用的数量是提高性能的主要方法。
The theory section in Part 1 showed the different steps of a remote call with the conclusion that reducing the number of remote calls is a main way to improve performance.
清单8显示了用于测试调用传递和返回值形式的三种方法的代码。
Listing 8 shows the code for the three methods used to test the passed-and-returned value form of the calls.
从调用三个EJB方法返回的字符串也应该被显示出来。
The Strings returned from invoking the three EJB methods should be printed out as well.
清单1中的代码显示了同步方法调用,其中的客户机线程将阻塞在服务调用内,在调用完成且结果可用之后才会返回。
The Listing 1 code shows a synchronous service method call where the client thread blocks inside the service call and doesn't return until the call is completed and the results are available.
但是由于这篇文章的重点是定义,调用,以及显示一个EJB 2sessionbean方法的结果,我们简单地阻止了这个Cancel回调行为。
But because the focus of this article is on defining, calling, and displaying the results of an EJB 2.x session bean method, we kept this Cancel callback behavior simple.
通过修改这个advice以缩进方式显示嵌套的方法调用,并且打印传递和返回的值,我将改进这一不足。
I'm going to fix this shortcoming by changing my advice to show method call nesting by indentation, and also to print the values being passed and returned.
清单5显示调用了清单3中的advice方法,但是没有提供关于所执行的应用程序的很多有用信息。
Listing 5 shows that the Listing 3 advice methods are being called, but doesn't present much useful information about the application being executed.
表1显示了Boolean字段,该字段控制哪种类型的节点能够调用访问程序的 visit() 方法。
Table 1 shows the Boolean fields that control which types of nodes are allowed to call the visitor's visit() method.
添加一个id为“springmessage ”的TextView元素,以便显示对某个get方法的方法调用的JAX - WSweb服务响应。
Add a TextView element with the id "springmessage" to display the JAX-WS web service response for a method call to one of the get methods.
反射性能是Sun开发1.4JVM时关注的一个方面,它在反射方法调用结果中显示。
Reflection performance was one area of focus for Sun when developing the 1.4 JVM, which shows in the reflection method call results. The Sun 1.4.1.
图片显示应用程序使用STUB方法,对web服务客户端的调用被截断。
A diagram shows the flow of an application using the STUB method where calls are intercepted on the way to the web service client.
要设置显示列的排序方向的箭头,可以调用Tree类的setSortDirection(intdirection)方法(第 36、37行)。
To set the arrow that shows the direction in which the column is sorted, the setSortDirection(int direction) method of the Tree class is called (lines 36 to 37).
JList调用toString方法显示结果。
The toString method is what the JList calls to display the results.
因此,要获取firstName的值,调用清单2中显示的第一个方法(firstName)。
So to get the value of firstName, invoke the first method (firstName) shown in Listing 2.
因为第二个jioner方法调用了第一个,它需要一个显示的String返回类型。
Since the second joiner method calls the first, it requires an explicit String return type.
图2和清单14中显示的confighandler类是负责处理配置接口上的方法调用的一个invocationhandler。
The ConfigHandler class, illustrated in Figure 2 and Listing 14, is an InvocationHandler responsible for handling method calls on a configuration interface.
显示调用上下文(call context):在序列图中,当鼠标在调用(call)上悬停的时候,就会弹出提示框,显示出调用上下文——调用方法的参数和返回值。
Shows call context: In the sequence diagram when the mouse is hovered over a call, the tooltip shows the call context - the call argument and the return value.
首先,请注意“index_html”方法:它被调用来显示一个对象实例,这是通过构建HTML 完成的。
First, note the "index_html" method; it is called to present an object instance, and it does so by building HTML.
我们将显示分别使用这两种Web服务调用方法的示例。
We'll show examples using both Web service invocation methods.
您仅需调用这些方法,而不必担心height和width值是否被度量或显示地设置。
You need to call these methods only, and you don't need to worry about whether the height and width values have been measured or set explicitly.
它允许开发人员通过显示所有调用或一个选定方法的调用,来探索代码的执行路径。
It allows developers to explore a code execution path by showing all calls to, or calls from, a selected method.
还可以通过调用该类的输出方法来显示这些结果,如清单2所描述的那样。
The results can also be displayed by calling the output methods for the class, as is described in Listing 2.
例如,如果问题是死循环,UM l序列图将会显示您在重复调用序列,统计表也会显示方法花费了很长的时间。
For example, if the problem is an endless loop, the UML sequence diagrams show you repeating sequences of calls, and statistical tables show methods that take a long time.
图3也显示了调用图视图如何高亮度显示最耗时的前十个方法。
Figure 3 also shows how the Call Graph view highlights the top ten methods by base time consumption.
应用推荐