Top Description Constructors Methods
org.apache.tomcat.util.bcel.classfile

pack-priv final Class Utility

extends Object
Class Inheritance
Imports
java.io.DataInput, .EOFException, .IOException, org.apache.tomcat.util.bcel.Const

Utility functions that do not really belong to any class in particular.

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static String

Returns:

Compacted class name
compactClassName
(final String
The long class name
str
)

Shorten long class name str, i.e., chop off the prefix, if the class name starts with this string and the flag chopit is true.

pack-priv static String
getClassName(final ConstantPool constantPool, final int index)

pack-priv static void
skipFully(final DataInput file, final int length)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Utilityback to summary
private Utility()

Method Detail

compactClassNameback to summary
pack-priv static String compactClassName(final String str)

Shorten long class name str, i.e., chop off the prefix, if the class name starts with this string and the flag chopit is true. Slashes / are converted to dots ..

Parameters
str:String

The long class name

Returns:String

Compacted class name

getClassNameback to summary
pack-priv static String getClassName(final ConstantPool constantPool, final int index)
skipFullyback to summary
pack-priv static void skipFully(final DataInput file, final int length) throws IOException