Package org.robovm.compiler.util
Class GenericSignatureParser
java.lang.Object
org.robovm.compiler.util.GenericSignatureParser
public class GenericSignatureParser extends Object
A simple class to parse method signatures that include generic information.
Modified from edu.umd.cs.findbugs.ba.SignatureParser
RoboVM note: Copied and slightly modified from findbugs
- Author:
- Nat Ayewah
-
Constructor Summary
Constructors Constructor Description GenericSignatureParser(String signature)Parses a generic method signature of the form:(argument_signature)return_type_signature -
Method Summary
Modifier and Type Method Description intgetNumParameters()Get the number of parameters in the signature.StringgetParameterSignature(int index)StringgetReturnTypeSignature()Get the method return type signature.Iterator<String>parameterSignatureIterator()Get an Iterator over signatures of the method parameters.
-
Constructor Details
-
GenericSignatureParser
Parses a generic method signature of the form:(argument_signature)return_type_signature- Parameters:
signature- the method signature to be parsed
-
-
Method Details
-
parameterSignatureIterator
Get an Iterator over signatures of the method parameters.- Returns:
- Iterator which returns the parameter type signatures in order
-
getParameterSignature
-
getReturnTypeSignature
Get the method return type signature.- Returns:
- the method return type signature
-
getNumParameters
public int getNumParameters()Get the number of parameters in the signature.- Returns:
- the number of parameters
-