net.sf.rej.java.attribute.generics
Class SignatureParser

java.lang.Object
  extended by net.sf.rej.java.attribute.generics.SignatureParser

public class SignatureParser
extends java.lang.Object

Utility class that performs parsing of signatures strings.

Author:
Sami Koivu

Constructor Summary
SignatureParser(java.lang.String signature)
           
 
Method Summary
 int getDimensionCount()
           
 int getFirstIndex(java.lang.String... targets)
           
 java.util.List<FormalTypeParameter> getFormalTypeParameters()
           
 GenericJavaType getGenericType()
           
 java.util.List<GenericJavaType> getMethodParameters()
           
static java.lang.String getPrimitiveName(char c)
           
 java.lang.String getTypeParameterIdentifier()
           
 boolean hasMore()
           
 net.sf.rej.java.attribute.generics.SignatureParser.ElementType peekNextType()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureParser

public SignatureParser(java.lang.String signature)
Method Detail

peekNextType

public net.sf.rej.java.attribute.generics.SignatureParser.ElementType peekNextType()

hasMore

public boolean hasMore()

getDimensionCount

public int getDimensionCount()

getGenericType

public GenericJavaType getGenericType()

getPrimitiveName

public static java.lang.String getPrimitiveName(char c)

getFirstIndex

public int getFirstIndex(java.lang.String... targets)

getTypeParameterIdentifier

public java.lang.String getTypeParameterIdentifier()

getFormalTypeParameters

public java.util.List<FormalTypeParameter> getFormalTypeParameters()

getMethodParameters

public java.util.List<GenericJavaType> getMethodParameters()