Package org.apache.bcel.util
Class ClassSet
java.lang.Object
org.apache.bcel.util.ClassSet
Utility class implementing a (type-safe) set of JavaClass objects. Since JavaClass has no equals() method, the name of the class is used for comparison.
- See Also:
-
Constructor Details
-
ClassSet
public ClassSet()Constructs a new ClassSet.
-
-
Method Details
-
add
Adds a JavaClass to the set.- Parameters:
clazz- The JavaClass to add.- Returns:
- true if the class was added.
-
empty
Checks if the set is empty.- Returns:
- true if the set is empty.
-
getClassNames
Gets the class names in the set.- Returns:
- The class names in the set.
-
remove
Removes a JavaClass from the set.- Parameters:
clazz- The JavaClass to remove.
-
toArray
Converts the set to an array.- Returns:
- An array of JavaClass objects.
-