Package proguard.classfile.util
Class DescriptorClassEnumeration
- java.lang.Object
-
- proguard.classfile.util.DescriptorClassEnumeration
-
public class DescriptorClassEnumeration extends java.lang.ObjectADescriptorClassEnumerationprovides an enumeration of all classes mentioned in a given descriptor or signature.
-
-
Constructor Summary
Constructors Constructor Description DescriptorClassEnumeration(java.lang.String descriptor)Creates a new DescriptorClassEnumeration for the given descriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intclassCount()Returns the number of classes contained in the descriptor.booleanhasMoreClassNames()Returns whether the enumeration can provide more class names from the descriptor.booleanisInnerClassName()Returns whether the most recently returned class name was a recomposed inner class name from a signature.static voidmain(java.lang.String[] args)A main method for testing the class name enumeration.java.lang.StringnextClassName()Returns the next class name from the descriptor.java.lang.StringnextFluff()Returns the next fluff (surrounding class names) from the descriptor.
-
-
-
Method Detail
-
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
public java.lang.String nextFluff()
Returns the next fluff (surrounding class names) from the descriptor.
-
nextClassName
public java.lang.String 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
public static void main(java.lang.String[] args)
A main method for testing the class name enumeration.
-
-