Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse JDT
Release 3.5

org.eclipse.jdt.core.refactoring.participants
Class ChangeMethodSignatureArguments.Parameter

java.lang.Object
  extended by 
org.eclipse.jdt.core.refactoring.participants.ChangeMethodSignatureArguments.Parameter
Enclosing class:
ChangeMethodSignatureArguments

public static final class ChangeMethodSignatureArguments.Parameter
extends Object

Instances of ChangeMethodSignatureArguments.Parameter are used to describe the new parameters after a change method signature refactoring.


Constructor Summary
ChangeMethodSignatureArguments.Parameter (int oldIndex, String newName, String newSignature, String defaultValue)
          Creates a ChangeMethodSignatureArguments.Parameter.
 
Method Summary
  String getDefaultValue ()
          The default value for new parameters or null.
  String getName ()
          Returns the new name of the parameter.
 int getOldIndex ()
          Returns the index of the parameter in the original method or -1 if the parameter has been added.
  String getType ()
          Returns the new type of the parameter in signature notation (See Signature).
  String toString ()
           
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeMethodSignatureArguments.Parameter

public ChangeMethodSignatureArguments.Parameter(int oldIndex,
                                                
String newName,
                                                
String newSignature,
                                                
String defaultValue)
Creates a ChangeMethodSignatureArguments.Parameter.

Parameters:
oldIndex - the index of the parameter in the original method or -1 if the parameter is a new parameter.
newName - the new name of the parameter.
newSignature - the new type of the parameter in signature notation (See Signature).
defaultValue - the default value for new parameters or null.
Method Detail

getOldIndex

public int getOldIndex()
Returns the index of the parameter in the original method or -1 if the parameter has been added.

Returns:
the index of the parameter in the original method or -1 if the parameter has been added

getName

public 
String getName()
Returns the new name of the parameter. If the name has not been changed by the refactoring, the original parameter name is returned.

Returns:
the new parameter name

getType

public 
String getType()
Returns the new type of the parameter in signature notation (See Signature). If the type has not been changed by the refactoring, the original type signature is returned.

Returns:
the the new type

getDefaultValue

public 
String getDefaultValue()
The default value for new parameters or null.

Returns:
returns the default value for new parameters or null.

toString

public 
String toString()
Overrides:
toString in class Object

Eclipse JDT
Release 3.5

Copyright (c) IBM Corp. and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire