JML

org.multijava.mjc
Class MjcSignatureParser

java.lang.Object
  extended byorg.multijava.mjc.MjcSignatureParser
All Implemented Interfaces:
SignatureParser

public class MjcSignatureParser
extends Object
implements SignatureParser


Field Summary
private  int current
           
protected static MjcSignatureParser instance
           
 
Constructor Summary
MjcSignatureParser()
           
 
Method Summary
static MjcSignatureParser getInstance()
           
 SignatureParser.ClassSignature parseClassSignature(String signature)
          Returns an object representing the types the signature of a class
protected  CType parseGenericTypeSignature(String signature, char[] sig)
           
 CType parseSignature(String signature)
          Parses a VM-standard type signature.
protected  CType parseSignature(String signature, int from, int to)
          Parses a VM-standard type signature within a signature string.
protected  CClassType[] parseTypeArgumentSignature(String signature, char[] sig)
           
protected  CTypeVariable[] parseTypeParameter(String signature, char[] sig)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

instance

protected static final MjcSignatureParser instance

current

private int current
Constructor Detail

MjcSignatureParser

public MjcSignatureParser()
Method Detail

parseSignature

public final CType parseSignature(String signature)
Parses a VM-standard type signature.

Parameters:
signature - the type signature
Returns:
the type represented by the signature

parseSignature

protected CType parseSignature(String signature,
                               int from,
                               int to)
Parses a VM-standard type signature within a signature string.

Parameters:
signature - the type signature
from - the start index
to - the end index
Returns:
the type represented by the signature

parseGenericTypeSignature

protected CType parseGenericTypeSignature(String signature,
                                          char[] sig)

parseTypeArgumentSignature

protected CClassType[] parseTypeArgumentSignature(String signature,
                                                  char[] sig)

parseTypeParameter

protected CTypeVariable[] parseTypeParameter(String signature,
                                             char[] sig)

parseClassSignature

public SignatureParser.ClassSignature parseClassSignature(String signature)
Returns an object representing the types the signature of a class

Specified by:
parseClassSignature in interface SignatureParser

getInstance

public static MjcSignatureParser getInstance()

JML

JML is Copyright (C) 1998-2002 by Iowa State University and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.