public class InternalTypeEnumeration extends Object
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 be retrieved separately.| Constructor and Description |
|---|
InternalTypeEnumeration(String descriptor)
Creates a new InternalTypeEnumeration for the given method descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isMethodSignature()
Returns whether the type is a method signature.
|
static void |
main(String[] args)
A main method for testing the type enumeration.
|
String |
nextType()
Returns the next type from the method descriptor.
|
String |
returnType()
Returns the return type from the descriptor, assuming it's a method
descriptor.
|
public InternalTypeEnumeration(String descriptor)
public boolean isMethodSignature()
public String formalTypeParameters()
public boolean hasMoreTypes()
public String nextType()
public String returnType()
public static void main(String[] args)
Copyright © 2014. All Rights Reserved.