类 InternalTypeEnumeration

  • 所有已实现的接口:
    java.util.Iterator<java.lang.String>

    public class InternalTypeEnumeration
    extends java.lang.Object
    implements java.util.Iterator<java.lang.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​(java.lang.String descriptor)
      Creates a new InternalTypeEnumeration for the given method descriptor.
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      java.lang.String formalTypeParameters()
      Returns the leading formal type parameters from the descriptor.
      boolean hasFormalTypeParameters()
      Returns whether the descriptor has leading formal type parameters.
      boolean hasMoreTypes()
      Returns whether the enumeration can provide more types from the method descriptor.
      boolean hasNext()  
      boolean isMethodSignature()
      Returns whether the descriptor is a method signature.
      static void main​(java.lang.String[] args)
      A main method for testing the type enumeration.
      java.lang.String next()  
      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.
      int typeCount()
      Returns the number of types contained in the descriptor.
      int typesSize()
      Returns the total size of the types contained in the descriptor.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • 从接口继承的方法 java.util.Iterator

        forEachRemaining, remove
    • 构造器详细资料

      • InternalTypeEnumeration

        public InternalTypeEnumeration​(java.lang.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 java.lang.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 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.
      • hasNext

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

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