类 InternalTypeEnumeration
java.lang.Object
proguard.classfile.util.InternalTypeEnumeration
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(String descriptor) Creates a new InternalTypeEnumeration for the given method descriptor. -
方法概要
修饰符和类型方法说明Returns the leading formal type parameters from the descriptor.booleanReturns whether the descriptor has leading formal type parameters.booleanReturns whether the enumeration can provide more types from the method descriptor.booleanhasNext()booleanReturns whether the descriptor is a method signature.static voidA main method for testing the type enumeration.next()nextType()Returns the next type from the method descriptor.Returns the return type from the descriptor, assuming it's a method descriptor.intReturns the number of types contained in the descriptor.intReturns 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
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
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
Returns the next type from the method descriptor. -
returnType
Returns the return type from the descriptor, assuming it's a method descriptor. -
main
A main method for testing the type enumeration. -
hasNext
public boolean hasNext() -
next
-