proguard.classfile.util
Class InternalTypeEnumeration

java.lang.Object
  extended by proguard.classfile.util.InternalTypeEnumeration

public class InternalTypeEnumeration
extends java.lang.Object

An InternalTypeEnumeration provides an enumeration of all parameter types listed in a given internal method descriptor or signature. The signature can also be a class signature. The return type of a method descriptor can retrieved separately.


Constructor Summary
InternalTypeEnumeration(java.lang.String descriptor)
          Creates a new InternalTypeEnumeration for the given method descriptor.
 
Method Summary
 java.lang.String formalTypeParameters()
          Returns the formal type parameters from the descriptor, assuming it's a method descriptor.
 boolean hasMoreTypes()
          Returns whether the enumeration can provide more types from the method descriptor.
static void main(java.lang.String[] args)
          A main method for testing the type enumeration.
 java.lang.String nextType()
          Returns the next type from the method descriptor.
 java.lang.String returnType()
          Returns the return type from the descriptor, assuming it's a method descriptor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InternalTypeEnumeration

public InternalTypeEnumeration(java.lang.String descriptor)
Creates a new InternalTypeEnumeration for the given method descriptor.

Method Detail

formalTypeParameters

public java.lang.String formalTypeParameters()
Returns the formal type parameters from the descriptor, assuming it's a method descriptor.


hasMoreTypes

public boolean hasMoreTypes()
Returns whether the enumeration can provide more types from the method descriptor.


nextType

public java.lang.String nextType()
Returns the next type from the method descriptor.


returnType

public java.lang.String returnType()
Returns the return type from the descriptor, assuming it's a method descriptor.


main

public static void main(java.lang.String[] args)
A main method for testing the type enumeration.