author | trims |
Thu, 27 May 2010 19:08:38 -0700 | |
changeset 5547 | f4b087cbb361 |
parent 4491 | 212bd48525d4 |
child 7397 | 5b173b4ca846 |
permissions | -rw-r--r-- |
1 | 1 |
<?xml version="1.0"?> |
2 |
<!-- |
|
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4491
diff
changeset
|
3 |
Copyright (c) 2002, 2009, Oracle and/or its affiliates. All rights reserved. |
1 | 4 |
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
5 |
||
6 |
This code is free software; you can redistribute it and/or modify it |
|
7 |
under the terms of the GNU General Public License version 2 only, as |
|
8 |
published by the Free Software Foundation. |
|
9 |
||
10 |
This code is distributed in the hope that it will be useful, but WITHOUT |
|
11 |
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
12 |
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
13 |
version 2 for more details (a copy is included in the LICENSE file that |
|
14 |
accompanied this code). |
|
15 |
||
16 |
You should have received a copy of the GNU General Public License version |
|
17 |
2 along with this work; if not, write to the Free Software Foundation, |
|
18 |
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
19 |
||
5547
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4491
diff
changeset
|
20 |
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4491
diff
changeset
|
21 |
or visit www.oracle.com if you need additional information or have any |
f4b087cbb361
6941466: Oracle rebranding changes for Hotspot repositories
trims
parents:
4491
diff
changeset
|
22 |
questions. |
1 | 23 |
|
24 |
--> |
|
25 |
||
26 |
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> |
|
27 |
||
28 |
<xsl:import href="jvmtiLib.xsl"/> |
|
29 |
||
30 |
<xsl:output method="text" indent="no" omit-xml-declaration="yes"/> |
|
31 |
||
32 |
<xsl:template match="/"> |
|
33 |
<xsl:apply-templates select="specification"/> |
|
34 |
</xsl:template> |
|
35 |
||
36 |
<xsl:template match="specification"> |
|
37 |
<xsl:call-template name="includeHeader"/> |
|
38 |
<xsl:text> |
|
39 |
||
40 |
enum { |
|
41 |
JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text> |
|
42 |
<xsl:value-of select="count(//capabilityfield)"/> |
|
43 |
<xsl:text> |
|
44 |
}; |
|
45 |
||
46 |
||
47 |
class JvmtiEnv : public JvmtiEnvBase { |
|
48 |
||
49 |
private: |
|
50 |
||
4491 | 51 |
JvmtiEnv(jint version); |
1 | 52 |
~JvmtiEnv(); |
53 |
||
54 |
public: |
|
55 |
||
4491 | 56 |
static JvmtiEnv* create_a_jvmti(jint version); |
1 | 57 |
|
58 |
</xsl:text> |
|
59 |
<xsl:apply-templates select="functionsection"/> |
|
60 |
<xsl:text> |
|
61 |
}; |
|
62 |
</xsl:text> |
|
63 |
</xsl:template> |
|
64 |
||
65 |
<xsl:template match="functionsection"> |
|
66 |
<xsl:apply-templates select="category"/> |
|
67 |
</xsl:template> |
|
68 |
||
69 |
<xsl:template match="category"> |
|
70 |
<xsl:text> |
|
71 |
// </xsl:text><xsl:value-of select="@label"/><xsl:text> functions |
|
72 |
</xsl:text> |
|
73 |
<xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/> |
|
74 |
</xsl:template> |
|
75 |
||
76 |
<xsl:template match="function"> |
|
77 |
<xsl:text> jvmtiError </xsl:text> |
|
78 |
<xsl:if test="count(@hide)=1"> |
|
79 |
<xsl:value-of select="@hide"/> |
|
80 |
</xsl:if> |
|
81 |
<xsl:value-of select="@id"/> |
|
82 |
<xsl:text>(</xsl:text> |
|
83 |
<xsl:apply-templates select="parameters" mode="HotSpotSig"/> |
|
84 |
<xsl:text>); |
|
85 |
</xsl:text> |
|
86 |
</xsl:template> |
|
87 |
||
88 |
</xsl:stylesheet> |