/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Returns internal type signature.
*
* <p><b>This is NOT part of any supported API.
* If you write code that depends on this, you do so at your own
* risk. This code and its internal interfaces are subject to change
* or deletion without notice.</b></p>
*
* @author Sucheta Dambalkar
*/
public class TypeSignature {
super(reason);
}
}
/* Signature Characters */
}
/*
* Returns the type signature of a field according to JVM specs
*/
return getParamJVMSignature(javasignature);
}
/*
* Returns the type signature of a method according to JVM specs
*/
throws SignatureException {
int startIndex = -1;
int endIndex = -1;
int i = 0;
// Gets the actual java signature without parentheses.
if (javasignature != null) {
}
}
// Separates parameters.
while (st.hasMoreTokens()) {
}
}
} else {
}
}
/* JVM type signature. */
typeSignature = "(";
// Gets indivisual internal parameter signature.
if (paramJVMSig != null) {
}
}
typeSignature += ")";
// Get internal return type signature.
returnJVMType = "";
if (returnType != null) {
}
//Gets array dimension of return type.
while (dimensions-- > 0) {
returnJVMType += "[";
}
if (returnType != null) {
} else {
}
return typeSignature;
}
/*
* Returns internal signature of a parameter.
*/
// Gets array dimension.
if(dimensionString != null){
paramJVMSig += "[";
}else
dimensionString = "";
}
}
} else componentType = paramsig;
}
return paramJVMSig;
}
/*
* Returns internal signature of a component.
*/
if(componentType != null){
else {
if(classNameDoc == null){
throw new SignatureException(componentType);
}else {
JVMSig += "L";
JVMSig += newclassname;
JVMSig += ";";
}
}
}
}
return JVMSig;
}
return 0;
}
return t.getComponentType().accept(this, p);
}
}
}
return defaultAction(t, p);
}
return t.getUpperBound().accept(this, p);
}
};
}
}