Package proguard.classfile.util
Class DescriptorClassEnumeration
java.lang.Object
proguard.classfile.util.DescriptorClassEnumeration
A
DescriptorClassEnumeration provides an enumeration of all classes mentioned in a given
descriptor or signature.-
Constructor Summary
ConstructorsConstructorDescriptionDescriptorClassEnumeration(String descriptor) Creates a new DescriptorClassEnumeration for the given descriptor. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of classes contained in the descriptor.booleanReturns whether the enumeration can provide more class names from the descriptor.booleanReturns whether the most recently returned class name was a recomposed inner class name from a signature.static voidA main method for testing the class name enumeration.Returns the next class name from the descriptor.Returns the next fluff (surrounding class names) from the descriptor.
-
Constructor Details
-
DescriptorClassEnumeration
Creates a new DescriptorClassEnumeration for the given descriptor.
-
-
Method Details
-
classCount
public int classCount()Returns the number of classes contained in the descriptor. This is the number of class names that the enumeration will return. -
hasMoreClassNames
public boolean hasMoreClassNames()Returns whether the enumeration can provide more class names from the descriptor. -
nextFluff
Returns the next fluff (surrounding class names) from the descriptor. -
nextClassName
Returns the next class name from the descriptor. -
isInnerClassName
public boolean isInnerClassName()Returns whether the most recently returned class name was a recomposed inner class name from a signature. -
main
A main method for testing the class name enumeration.
-