|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ltk.core.refactoring.participants.RefactoringArguments
org.eclipse.jdt.core.refactoring.participants.ChangeMethodSignatureArguments
public class ChangeMethodSignatureArguments
Change method signature arguments describe the data that a processor provides to its change signature participants
This class is not intended to be subclassed by clients.
Nested Class Summary | |
---|---|
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 Summary | |
---|---|
ChangeMethodSignatureArguments(String newName,
String newReturnType,
int newVisibility,
ChangeMethodSignatureArguments.Parameter[] newParameters,
ChangeMethodSignatureArguments.ThrownException[] thrownExceptions,
boolean keepOriginal)
Creates new change method signature arguments. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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
otherwiseMethod Detail |
---|
public 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
|
Eclipse JDT Release 3.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2013 IBM Corporation and others. All rights reserved.