|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectorg.eclipse.ltk.core.refactoring.RefactoringDescriptor
Descriptor object of a refactoring.
A refactoring descriptor contains refactoring-specific data which allows to
framework to completely reconstruct a particular refactoring instance and
execute it on the workspace. Refactoring descriptors are identified by their
refactoring id getID() and their time stamps getTimeStamp().
Refactoring descriptors are potentially heavyweight objects which should not
be held on to. Use refactoring descriptor handles
RefactoringDescriptorProxy to store refactoring information.
Note: this class is not indented to be subclassed outside the refactoring framework.
Note: This API is considered experimental and may change in the near future.
| Constructor Summary | |
|---|---|
RefactoringDescriptor(String id,
String project,
String description,
String comment,
Map arguments)
Creates a new refactoring descriptor. |
|
| Method Summary | |
|---|---|
int |
compareTo(Object object)
|
boolean |
equals(Object object)
|
Map |
getArguments()
Returns the arguments describing the refactoring, in no particular order. |
String |
getComment()
Returns the comment associated with this refactoring. |
String |
getDescription()
Returns a human-readable description of the particular refactoring instance. |
String |
getID()
Returns the unique id of the refactoring. |
String |
getProject()
Returns the name of the project this refactoring is associated with. |
long |
getTimeStamp()
Returns the time stamp of this refactoring. |
int |
hashCode()
|
boolean |
isUnknown()
Returns whether this descriptor describes an unknown refactoring. |
void |
setTimeStamp(long stamp)
Sets the time stamp of this refactoring. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public RefactoringDescriptor(String id,
String project,
String description,
String comment,
Map arguments)
id - the unique id of the refactoringproject - the non-empty name of the project associated with this
refactoring, or nulldescription - a non-empty human-readable description of the particular
refactoring instancecomment - the comment associated with the refactoring, or
null for no commmentarguments - the argument map (element type: <String, String>). The
keys of the arguments are required to be non-empty strings
which must not contain spaces. The values must be non-empty
strings| Method Detail |
public final int compareTo(Object object)
compareTo in interface Comparablepublic final boolean equals(Object object)
public final Map getArguments()
public final String getComment()
public final String getDescription()
public final String getID()
public final String getProject()
nullpublic final long getTimeStamp()
-1 if no time information is
availablepublic final int hashCode()
public boolean isUnknown()
The default implementation returns false.
true if the descriptor describes an unknown
refactoring, false otherwisepublic final void setTimeStamp(long stamp)
Note: This API must not be called from outside the refactoring framework.
stamp - the time stamp to setpublic final String toString()
|
Eclipse Platform Release 3.1 |
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2000, 2005. All rights reserved.