PTP
Release 7.0

org.eclipse.ptp.pldt.common.editorHelp
Class FunctionPrototypeSummaryImpl

java.lang.Object
  extended by org.eclipse.ptp.pldt.common.editorHelp.FunctionPrototypeSummaryImpl
All Implemented Interfaces:
org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

public class FunctionPrototypeSummaryImpl
extends java.lang.Object
implements org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

Encapsulation of a function's name, return type, and arguments


Constructor Summary
FunctionPrototypeSummaryImpl()
          Default Constructor
FunctionPrototypeSummaryImpl(java.lang.String name, java.lang.String returnType, java.lang.String arguments)
          Constructor with information provided
 
Method Summary
 java.lang.String getArguments()
           
 java.lang.String getName()
           
 java.lang.String getPrototypeString(boolean namefirst)
           
 java.lang.String getReturnType()
           
 void setArguments(java.lang.String arguments)
          Set the arguments
 void setName(java.lang.String name)
          Set the name
 void setReturnType(java.lang.String returnType)
          Set the return type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionPrototypeSummaryImpl

public FunctionPrototypeSummaryImpl()
Default Constructor


FunctionPrototypeSummaryImpl

public FunctionPrototypeSummaryImpl(java.lang.String name,
                                    java.lang.String returnType,
                                    java.lang.String arguments)
Constructor with information provided

Parameters:
name - the function name
returnType - return type of function
arguments - arguments to the function
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

getReturnType

public java.lang.String getReturnType()
Specified by:
getReturnType in interface org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

getArguments

public java.lang.String getArguments()
Specified by:
getArguments in interface org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

getPrototypeString

public java.lang.String getPrototypeString(boolean namefirst)
Specified by:
getPrototypeString in interface org.eclipse.cdt.ui.IFunctionSummary.IFunctionPrototypeSummary

setArguments

public void setArguments(java.lang.String arguments)
Set the arguments

Parameters:
arguments -

setName

public void setName(java.lang.String name)
Set the name

Parameters:
name -

setReturnType

public void setReturnType(java.lang.String returnType)
Set the return type

Parameters:
returnType -

PTP
Release 7.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.