mjc

org.multijava.mjc
Class CType.MethodSignatureParser

java.lang.Object
  extended byorg.multijava.mjc.CType.MethodSignatureParser
Enclosing class:
CType

public static class CType.MethodSignatureParser
extends Object

This inner class provides methods for converting a bytecode type signature into an instance of (a subclass of) CType for use in compilation. This conversion is used to determine the types of members read from a *.class file.


Field Summary
(package private)  int current
           
(package private)  ArrayList res
           
 
Constructor Summary
CType.MethodSignatureParser()
           
 
Method Summary
private  int findEnd(int current, char[] sig)
           
 CType parseGenericTypeSignature(String signature)
           
 CType parseGenericTypeSignature(String signature, char[] sig, CUniverseTypeAnnotation univAnnot)
           
 CType parseGenericTypeSignature(String signature, CUniverseTypeAnnotation univAnnot)
           
 CType.MethodSignature parseMethodSignature(String signature)
          Parses a Multijava method signature.
 CType.MethodSignature parseMethodSignature(String signature, CUniverseMethodAnnotation univAnnot)
           
 CType parseSignature(String signature)
          Parses a java type signature.
private  CType parseSignature(String signature, int from, int to)
           
private  CType parseSignature(String signature, int from, int to, CType staticType, CUniverseTypeAnnotation univAnnot)
           
private  CType parseSignature(String signature, int from, int to, CUniverseTypeAnnotation univAnnot)
           
 CType parseSignature(String signature, CUniverseTypeAnnotation univAnnot)
           
 CClassType[] parseTypeArgumentSignature(String signature, char[] sig)
           
 CTypeVariable[] parseTypeParameter(String signature, char[] sig)
           
private  CType parseValueSpecSignature(String value, CType staticType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

res

ArrayList res

current

int current
Constructor Detail

CType.MethodSignatureParser

public CType.MethodSignatureParser()
Method Detail

parseSignature

public final CType parseSignature(String signature)
Parses a java type signature. Attempts to parse the provided string as if it started with the Java VM-standard signature for a type.

Parameters:
signature - a string containing the signature to be parsed
Returns:
CType a CType instance for the type given by signature

parseSignature

public final CType parseSignature(String signature,
                                  CUniverseTypeAnnotation univAnnot)

parseSignature

private CType parseSignature(String signature,
                             int from,
                             int to)

parseSignature

private CType parseSignature(String signature,
                             int from,
                             int to,
                             CUniverseTypeAnnotation univAnnot)

parseSignature

private CType parseSignature(String signature,
                             int from,
                             int to,
                             CType staticType,
                             CUniverseTypeAnnotation univAnnot)

parseTypeParameter

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

parseGenericTypeSignature

public CType parseGenericTypeSignature(String signature)

parseGenericTypeSignature

public CType parseGenericTypeSignature(String signature,
                                       CUniverseTypeAnnotation univAnnot)

parseGenericTypeSignature

public CType parseGenericTypeSignature(String signature,
                                       char[] sig,
                                       CUniverseTypeAnnotation univAnnot)

parseTypeArgumentSignature

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

parseValueSpecSignature

private CType parseValueSpecSignature(String value,
                                      CType staticType)

parseMethodSignature

public CType.MethodSignature parseMethodSignature(String signature)
Parses a Multijava method signature.

Parameters:
signature - a string containing the signature to be parsed

parseMethodSignature

public CType.MethodSignature parseMethodSignature(String signature,
                                                  CUniverseMethodAnnotation univAnnot)

findEnd

private int findEnd(int current,
                    char[] sig)

mjc

mjc is Copyright (C) 2000-2004 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. mjc is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.