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

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

public class MethodPart
extends FilePart

A C or C++ method from a piece of source code. The method has a signature and a body (the bit between the braces).


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.cpp.tools.common.FilePart
BEGINSCOPE, CLASSATTRIBUTE, COMMENT, cppsource, DIRECTIVE, ENDSCOPE, ENUM, FIELD, MACRO, METHOD, PROTOTYPE, type, TYPEDEF, UNKNOWN, WHITESPACE
 
Method Summary
 BodyPart[] getBodyParts()
          Returns the method body as code snippets, each ending with a place where a trace statement belongs.
 java.lang.String getOriginalSignature()
           
 Signature getSignature()
           
 
Methods inherited from class org.apache.tuscany.sca.cpp.tools.common.FilePart
getType, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getSignature

public Signature getSignature()

getOriginalSignature

public java.lang.String getOriginalSignature()

getBodyParts

public BodyPart[] getBodyParts()
                        throws ParsingException
Returns the method body as code snippets, each ending with a place where a trace statement belongs. The end of the first code snippet is where the entry trace should go. The end of every other snippet is a return from the method.

Throws:
ParsingException


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