类 InternalTypeEnumeration

java.lang.Object
proguard.classfile.util.InternalTypeEnumeration
所有已实现的接口:
Iterator<String>

public class InternalTypeEnumeration extends Object implements Iterator<String>
An InternalTypeEnumeration provides an enumeration of all types listed in a given internal descriptor or signature of a class, a method, or a field.

The leading formal type parameters, if any, can be retrieved separately.

The return type of a method descriptor can also be retrieved separately.

  • 构造器详细资料

    • InternalTypeEnumeration

      public InternalTypeEnumeration(String descriptor)
      Creates a new InternalTypeEnumeration for the given method descriptor.
  • 方法详细资料

    • typeCount

      public int typeCount()
      Returns the number of types contained in the descriptor. This is the number of types that the enumeration will return.
    • typesSize

      public int typesSize()
      Returns the total size of the types contained in the descriptor. This accounts for long and double parameters taking up two entries.
    • hasFormalTypeParameters

      public boolean hasFormalTypeParameters()
      Returns whether the descriptor has leading formal type parameters.
    • formalTypeParameters

      public String formalTypeParameters()
      Returns the leading formal type parameters from the descriptor.
    • isMethodSignature

      public boolean isMethodSignature()
      Returns whether the descriptor is a method signature.
    • hasMoreTypes

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

      public String nextType()
      Returns the next type from the method descriptor.
    • returnType

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

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

      public boolean hasNext()
      指定者:
      hasNext 在接口中 Iterator<String>
    • next

      public String next()
      指定者:
      next 在接口中 Iterator<String>