src/share/vm/prims/jvmtiHpp.xsl

changeset 435
a61af66fc99e
child 1556
98cd9901c161
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/share/vm/prims/jvmtiHpp.xsl	Sat Dec 01 00:00:00 2007 +0000
     1.3 @@ -0,0 +1,88 @@
     1.4 +<?xml version="1.0"?> 
     1.5 +<!--
     1.6 + Copyright 2002-2005 Sun Microsystems, Inc.  All Rights Reserved.
     1.7 + DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8 +
     1.9 + This code is free software; you can redistribute it and/or modify it
    1.10 + under the terms of the GNU General Public License version 2 only, as
    1.11 + published by the Free Software Foundation.
    1.12 +
    1.13 + This code is distributed in the hope that it will be useful, but WITHOUT
    1.14 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
    1.15 + FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
    1.16 + version 2 for more details (a copy is included in the LICENSE file that
    1.17 + accompanied this code).
    1.18 +
    1.19 + You should have received a copy of the GNU General Public License version
    1.20 + 2 along with this work; if not, write to the Free Software Foundation,
    1.21 + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
    1.22 +
    1.23 + Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
    1.24 + CA 95054 USA or visit www.sun.com if you need additional information or
    1.25 + have any questions.
    1.26 +  
    1.27 +-->
    1.28 +
    1.29 +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    1.30 +
    1.31 +<xsl:import href="jvmtiLib.xsl"/>
    1.32 +
    1.33 +<xsl:output method="text" indent="no" omit-xml-declaration="yes"/>
    1.34 +
    1.35 +<xsl:template match="/">
    1.36 +  <xsl:apply-templates select="specification"/>
    1.37 +</xsl:template>
    1.38 +
    1.39 +<xsl:template match="specification">
    1.40 +  <xsl:call-template name="includeHeader"/>
    1.41 +  <xsl:text>
    1.42 +    
    1.43 +enum {
    1.44 +    JVMTI_INTERNAL_CAPABILITY_COUNT = </xsl:text>
    1.45 +  <xsl:value-of select="count(//capabilityfield)"/>
    1.46 +  <xsl:text>
    1.47 +};
    1.48 +
    1.49 +
    1.50 +class JvmtiEnv : public JvmtiEnvBase {
    1.51 +
    1.52 +private:
    1.53 +    
    1.54 +    JvmtiEnv();
    1.55 +    ~JvmtiEnv();
    1.56 +
    1.57 +public:
    1.58 +
    1.59 +    static JvmtiEnv* create_a_jvmti();
    1.60 +
    1.61 +</xsl:text>
    1.62 +  <xsl:apply-templates select="functionsection"/>
    1.63 +  <xsl:text>
    1.64 +};
    1.65 +</xsl:text>
    1.66 +</xsl:template>
    1.67 +
    1.68 +<xsl:template match="functionsection">
    1.69 +  <xsl:apply-templates select="category"/>
    1.70 +</xsl:template>
    1.71 +
    1.72 +<xsl:template match="category">
    1.73 +  <xsl:text>
    1.74 +  // </xsl:text><xsl:value-of select="@label"/><xsl:text> functions
    1.75 +</xsl:text>
    1.76 +  <xsl:apply-templates select="function[not(contains(@impl,'unimpl'))]"/>
    1.77 +</xsl:template>
    1.78 +
    1.79 +<xsl:template match="function">
    1.80 +  <xsl:text>    jvmtiError </xsl:text>
    1.81 +  <xsl:if test="count(@hide)=1">
    1.82 +    <xsl:value-of select="@hide"/>
    1.83 +  </xsl:if>
    1.84 +  <xsl:value-of select="@id"/>
    1.85 +  <xsl:text>(</xsl:text>
    1.86 +  <xsl:apply-templates select="parameters" mode="HotSpotSig"/>
    1.87 +  <xsl:text>);
    1.88 +</xsl:text>
    1.89 +</xsl:template>
    1.90 +
    1.91 +</xsl:stylesheet>

mercurial