public class ChangeMethodSignatureArguments extends RefactoringArguments
This class is not intended to be subclassed by clients.
Modifier and Type | Class and Description |
---|---|
static class |
ChangeMethodSignatureArguments.Parameter
Instances of
ChangeMethodSignatureArguments.Parameter are used to describe the new parameters
after a change method signature refactoring. |
static class |
ChangeMethodSignatureArguments.ThrownException
Instances of
ChangeMethodSignatureArguments.ThrownException are used to describe the new thrown
exceptions after a change method signature refactoring. |
Constructor and Description |
---|
ChangeMethodSignatureArguments(String newName,
String newReturnType,
int newVisibility,
ChangeMethodSignatureArguments.Parameter[] newParameters,
ChangeMethodSignatureArguments.ThrownException[] thrownExceptions,
boolean keepOriginal)
Creates new change method signature arguments.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getKeepOriginal()
Returns whether the original method is kept as a delegate to the new one.
|
String |
getNewName()
Returns the new method name.
|
ChangeMethodSignatureArguments.Parameter[] |
getNewParameters()
Returns the new parameters of this method.
|
String |
getNewReturnType()
Returns the type signature of the new return type of this method.
|
int |
getNewVisibility()
Returns the new visibility of this method.
|
ChangeMethodSignatureArguments.ThrownException[] |
getThrownExceptions()
Returns the new thrown exceptions of this method.
|
String |
toString() |
public ChangeMethodSignatureArguments(String newName, String newReturnType, int newVisibility, ChangeMethodSignatureArguments.Parameter[] newParameters, ChangeMethodSignatureArguments.ThrownException[] thrownExceptions, boolean keepOriginal)
newName
- the new name of the element to be changednewReturnType
- the new method return type in signature notation (see Signature
).newVisibility
- the new visibility; one of Flags.AccPublic
, Flags.AccProtected
,
Flags.AccPrivate
or 0
for the default visibility.newParameters
- the new parameters of this methodthrownExceptions
- the new exceptions thrown by this methodkeepOriginal
- true
if the original method is kept as a delegate to the new one,
false
otherwisepublic String getNewName()
public String getNewReturnType()
public int getNewVisibility()
Flags.AccPublic
, Flags.AccProtected
,
Flags.AccPrivate
or 0
for the default visibility. If the visibility has not been changed by the
refactoring, the original visibility is returned.public ChangeMethodSignatureArguments.Parameter[] getNewParameters()
public ChangeMethodSignatureArguments.ThrownException[] getThrownExceptions()
public boolean getKeepOriginal()
true
if the original method is kept false
otherwisepublic String toString()
toString
in class RefactoringArguments
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.