jvmtiHpp.xsl revision 1879:f95d63e2154a
18697Sykantser<?xml version="1.0"?> 
211884Sykantser<!--
38697Sykantser Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
48697Sykantser DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
58697Sykantser
68697Sykantser This code is free software; you can redistribute it and/or modify it
78697Sykantser under the terms of the GNU General Public License version 2 only, as
88697Sykantser published by the Free Software Foundation.
98697Sykantser
108697Sykantser This code is distributed in the hope that it will be useful, but WITHOUT
118697Sykantser ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
128697Sykantser FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
138697Sykantser version 2 for more details (a copy is included in the LICENSE file that
148697Sykantser accompanied this code).
158697Sykantser
168697Sykantser You should have received a copy of the GNU General Public License version
178697Sykantser 2 along with this work; if not, write to the Free Software Foundation,
188697Sykantser Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
198697Sykantser
208697Sykantser Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
218697Sykantser or visit www.oracle.com if you need additional information or have any
228697Sykantser questions.
238697Sykantser  
248697Sykantser-->
258697Sykantser
268697Sykantser<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
2713350Samlu
2816958Siignatyev<xsl:import href="jvmtiLib.xsl"/>
298697Sykantser
3016958Siignatyev<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
319941Sykantser
328697Sykantser<xsl:template match="/">
338697Sykantser  <xsl:apply-templates select="specification"/>
348697Sykantser</xsl:template>
358697Sykantser
368697Sykantser<xsl:template match="specification">
378697Sykantser  <xsl:call-template name="includeHeader"/>
388697Sykantser  <xsl:text>
398697Sykantser    
408697Sykantser
418697Sykantser#ifndef GENERATED_JVMTIFILES_JVMTIENV_HPP
428697Sykantser#define GENERATED_JVMTIFILES_JVMTIENV_HPP
43
44#include "prims/jvmtiEnvBase.hpp"
45#include "prims/jvmtiImpl.hpp"
46
47enum {
48    JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text>
49  <xsl:value-of select="count(//capabilityfield)"/>
50  <xsl:text>
51};
52
53
54class JvmtiEnv : public JvmtiEnvBase {
55
56private:
57    
58    JvmtiEnv(jint version);
59    ~JvmtiEnv();
60
61public:
62
63    static JvmtiEnv* create_a_jvmti(jint version);
64
65</xsl:text>
66  <xsl:apply-templates select="functionsection"/>
67  <xsl:text>
68};
69
70#endif // GENERATED_JVMTIFILES_JVMTIENV_HPP
71</xsl:text>
72</xsl:template>
73
74<xsl:template match="functionsection">
75  <xsl:apply-templates select="category"/>
76</xsl:template>
77
78<xsl:template match="category">
79  <xsl:text>
80  // </xsl:text><xsl:value-of select="@label"/><xsl:text> functions
81</xsl:text>
82  <xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/>
83</xsl:template>
84
85<xsl:template match="function">
86  <xsl:text>    jvmtiError </xsl:text>
87  <xsl:if test="count(@hide)=1">
88    <xsl:value-of select="@hide"/>
89  </xsl:if>
90  <xsl:value-of select="@id"/>
91  <xsl:text>(</xsl:text>
92  <xsl:apply-templates select="parameters" mode="HotSpotSig"/>
93  <xsl:text>);
94</xsl:text>
95</xsl:template>
96
97</xsl:stylesheet>
98