at.dms.kjc
Class SignatureParser

java.lang.Object
  |
  +--at.dms.util.Utils
        |
        +--at.dms.kjc.SignatureParser

public class SignatureParser
extends Utils

Parser for VM type and method signatures. Signatures are part of the Java Virtual Machine standard and describe the parameter types and returns types of methods.


Fields inherited from class at.dms.util.Utils
DBG_LEVEL_HIGH, DBG_LEVEL_LOW, DBG_LEVEL_NO
 
Constructor Summary
SignatureParser()
           
 
Method Summary
 CType[] parseMethodSignature(java.lang.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(java.lang.String signature)
          Parse a java type signature.
 CType parseSignature(java.lang.String signature, int from, int to)
          Parse a java type signature from the substring of signature that starts at index from and ends just before to.
 
Methods inherited from class at.dms.util.Utils
assert, assert, fail, fail, hasFlag, hasMoreThanOneFlag, hasOtherFlags, splitQualifiedName, splitQualifiedName, vectorToArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SignatureParser

public SignatureParser()
Method Detail

parseSignature

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

parseSignature

public CType parseSignature(java.lang.String signature,
                            int from,
                            int to)
Parse a java type signature from the substring of signature that starts at index from and ends just before to.

parseMethodSignature

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