253N/A#! /bin/sh
553N/A#
253N/A# Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved.
253N/A# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
253N/A#
253N/A# This code is free software; you can redistribute it and/or modify it
253N/A# under the terms of the GNU General Public License version 2 only, as
253N/A# published by the Free Software Foundation. Oracle designates this
253N/A# particular file as subject to the "Classpath" exception as provided
253N/A# by Oracle in the LICENSE file that accompanied this code.
253N/A#
253N/A# This code is distributed in the hope that it will be useful, but WITHOUT
253N/A# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
253N/A# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
253N/A# version 2 for more details (a copy is included in the LICENSE file that
253N/A# accompanied this code).
253N/A#
253N/A# You should have received a copy of the GNU General Public License version
553N/A# 2 along with this work; if not, write to the Free Software Foundation,
553N/A# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
553N/A#
253N/A# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
253N/A# or visit www.oracle.com if you need additional information or have any
253N/A# questions.
253N/A#
253N/A
253N/A# Generate exception classes
253N/A
253N/ASPEC=$1
253N/ADST=$2
253N/A
253N/Agen() {
253N/A ID=$1
253N/A WHAT=$2
253N/A SVUID=$3
253N/A ARG_TYPE=$4
253N/A ARG_ID=$5
253N/A ARG_PROP=$6
253N/A ARG_PHRASE=$7
253N/A ARG_PARAM="$ARG_TYPE$ $ARG_ID"
253N/A echo '-->' $DST/$ID.java
253N/A out=$DST/${ID}.java
253N/A
253N/A $SH ./addNotices.sh "$COPYRIGHT_YEARS" > $out
253N/A
253N/Acat >>$out <<__END__
253N/A
253N/A// -- This file was mechanically generated: Do not edit! -- //
253N/A
253N/Apackage $PACKAGE;
253N/A
253N/A
253N/A/**$WHAT
*
* @since $SINCE
*/
public `if [ ${ABSTRACT:-0} = 1 ];
then echo 'abstract '; fi`class $ID
extends ${SUPER}
{
private static final long serialVersionUID = $SVUID;
__END__
if [ $ARG_ID ]; then
cat >>$out <<__END__
private $ARG_TYPE $ARG_ID;
/**
* Constructs an instance of this class. </p>
*
* @param $ARG_ID
* The $ARG_PHRASE
*/
public $ID($ARG_TYPE $ARG_ID) {
super(String.valueOf($ARG_ID));
this.$ARG_ID = $ARG_ID;
}
/**
* Retrieves the $ARG_PHRASE. </p>
*
* @return The $ARG_PHRASE
*/
public $ARG_TYPE get$ARG_PROP() {
return $ARG_ID;
}
}
__END__
else
cat >>$out <<__END__
/**
* Constructs an instance of this class.
*/
public $ID() { }
}
__END__
fi
}
. $SPEC