at.dms.kjc
Class MethodSignatureParser

java.lang.Object
  extended by at.dms.kjc.MethodSignatureParser
All Implemented Interfaces:
DeepCloneable

public class MethodSignatureParser
extends Object
implements DeepCloneable


Constructor Summary
MethodSignatureParser()
           
 
Method Summary
 Object deepClone()
          Returns a deep clone of this object.
protected  void deepCloneInto(MethodSignatureParser other)
          Clones all fields of this into
 CType[] parseMethodSignature(String signature)
          Returns an array of types represented by the type signature For methods, the return type is the last element of the array
 CType parseSignature(String signature)
          Parses a VM-standard type signature.
 CType parseSignature(String signature, int from, int to)
          Parses a VM-standard type signature within a signature string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodSignatureParser

public MethodSignatureParser()
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

public 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

parseMethodSignature

public CType[] parseMethodSignature(String signature)
Returns an array of types represented by the type signature For methods, the return type is the last element of the array


deepClone

public Object deepClone()
Returns a deep clone of this object.

Specified by:
deepClone in interface DeepCloneable

deepCloneInto

protected void deepCloneInto(MethodSignatureParser other)
Clones all fields of this into
other