Top Description Fields Constructors Methods
org.apache.derby.iapi.services.classfile

pack-priv Class ClassEnumeration

extends Object
implements Enumeration
Class Inheritance
All Implemented Interfaces
java.util.Enumeration
Imports
java.util.Enumeration, .HashSet, .StringTokenizer, org.apache.derby.iapi.services.classfile.VMDescriptor

An enumeration that filters only classes from the enumeration of the class pool. Code has been added to also include classes referenced in method and field signatures.

Field Summary

Modifier and TypeField and Description
pack-priv Enumeration<E>
pack-priv ClassHolder
pack-priv HashSet<String>
pack-priv Enumeration<E>
pack-priv CONSTANT_Index_info

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv void
distillClasses(String fieldOrMethodSig, HashSet<String> foundClasses)

private void
private void
findFieldReferences(Enumeration<E> fields, HashSet<String> foundClasses)

private void
findMethodReferences(Enumeration<E> methods, HashSet<String> foundClasses)

public boolean
hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

public Object
nextElement()

Implements java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classListback to summary
pack-priv Enumeration<E> classList
cptback to summary
pack-priv ClassHolder cpt
foundClassesback to summary
pack-priv HashSet<String> foundClasses
innerback to summary
pack-priv Enumeration<E> inner
positionback to summary
pack-priv CONSTANT_Index_info position

Constructor Detail

ClassEnumerationback to summary
pack-priv ClassEnumeration(ClassHolder cpt, Enumeration<E> e, Enumeration<E> methods, Enumeration<E> fields)

Method Detail

distillClassesback to summary
pack-priv void distillClasses(String fieldOrMethodSig, HashSet<String> foundClasses)
findClassReferencesback to summary
private void findClassReferences(HashSet<String> foundClasses)
findFieldReferencesback to summary
private void findFieldReferences(Enumeration<E> fields, HashSet<String> foundClasses)
findMethodReferencesback to summary
private void findMethodReferences(Enumeration<E> methods, HashSet<String> foundClasses)
hasMoreElementsback to summary
public boolean hasMoreElements()

Implements java.util.Enumeration.hasMoreElements.

Doc from java.util.Enumeration.hasMoreElements.

Tests if this enumeration contains more elements.

Returns:boolean

true if and only if this enumeration object contains at least one more element to provide; false otherwise.

nextElementback to summary
public Object nextElement()

Implements java.util.Enumeration.nextElement.

Doc from java.util.Enumeration.nextElement.

Returns the next element of this enumeration if this enumeration object has at least one more element to provide.

Returns:Object

the next element of this enumeration.