org.apache.maven.diagrams.connectors.classes.asm_parser
Class DescriptionParser

java.lang.Object
  extended by org.apache.maven.diagrams.connectors.classes.asm_parser.DescriptionParser

public class DescriptionParser
extends java.lang.Object

The class is a helper class for AsmClassDataSource. It helps to parse JVM Method/type signature into meaningful pieces.

Author:
Piotr Tabor

Constructor Summary
DescriptionParser(java.lang.String description)
           
 
Method Summary
 java.util.List<java.lang.String> readParamsList()
          Reads list of method parameters (type names) from signature.
 java.lang.String readType()
          The methods reads a single type from the signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptionParser

public DescriptionParser(java.lang.String description)
Parameters:
description - - the descriptor (JVM method or field signature) to be parsed
Method Detail

readParamsList

public java.util.List<java.lang.String> readParamsList()
                                                throws java.text.ParseException
Reads list of method parameters (type names) from signature. The first (not jet parsed) char should be '('. The returned types are "normal java types" (not JVM signature types)

Returns:
ordered list of types of method parameters
Throws:
java.text.ParseException

readType

public java.lang.String readType()
                          throws java.text.ParseException
The methods reads a single type from the signature. The returned type is "normal java type" (not JVM signature type)

Returns:
Throws:
java.text.ParseException


Copyright © 2002-2009 Apache Software Foundation. All Rights Reserved.