org.apache.tuscany.sca.cpp.tools.common
Class Signature

java.lang.Object
  extended byorg.apache.tuscany.sca.cpp.tools.common.Signature

public class Signature
extends java.lang.Object

A C or C++ method signature with the ability to parse it. TODO: properly support variable length argument lists using "..." TODO: passing or returning function pointers (hopefully not needed) TODO: Cope with ~ Classname()


Method Summary
 boolean equals(java.lang.Object obj)
           
 boolean failed()
           
 java.lang.String getAttributes()
           
 java.lang.String getClassName()
           
 java.lang.String getMethodName()
           
 java.lang.String getNamespace()
           
 java.lang.String getOriginal()
           
 Parameter[] getParameters()
           
 Parameter getReturnType()
           
 java.lang.String getScope()
           
 java.lang.String getTrimClassName()
           
 boolean isConstructor()
           
 boolean isDestructor()
           
 int originalLength()
           
 void setNamespace(java.lang.String namespace)
           
 void setScope(java.lang.String scope)
          Sets the scope, but only if the scope is not set by an explicit attribute in the signature.
 java.lang.String toString()
           
 java.lang.String toStringWithoutAttrs()
           
 boolean traceable()
          Should this method be traced?
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getOriginal

public java.lang.String getOriginal()

originalLength

public int originalLength()

failed

public boolean failed()

getAttributes

public java.lang.String getAttributes()

getClassName

public java.lang.String getClassName()

setNamespace

public void setNamespace(java.lang.String namespace)
Parameters:
namespace - The namespace to set.

getNamespace

public java.lang.String getNamespace()
Returns:
Returns the namespace.

getTrimClassName

public java.lang.String getTrimClassName()

getMethodName

public java.lang.String getMethodName()

getReturnType

public Parameter getReturnType()

getParameters

public Parameter[] getParameters()

isConstructor

public boolean isConstructor()

isDestructor

public boolean isDestructor()

getScope

public java.lang.String getScope()

setScope

public void setScope(java.lang.String scope)
Sets the scope, but only if the scope is not set by an explicit attribute in the signature.


traceable

public boolean traceable()
Should this method be traced?


equals

public boolean equals(java.lang.Object obj)

toStringWithoutAttrs

public java.lang.String toStringWithoutAttrs()

toString

public java.lang.String toString()


Copyright 2005 The Apache Software Foundation and Copyright IBM Corp. 2005 All Rights Reserved