Package com.iizigo.project.refactor
Enum RefactoringOperation
- java.lang.Object
- java.lang.Enum<RefactoringOperation>
- com.iizigo.project.refactor.RefactoringOperation
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RefactoringOperation>
public enum RefactoringOperation extends java.lang.Enum<RefactoringOperation>
Enumeration for refactoring operations.
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINER_ADDED
Container added.CONTAINER_REMOVED
Container removed.CONTAINER_RENAMED
Container renamed or moved.FILE_ADDED
File added.FILE_CHANGED
File changed (contents, markers, etc).FILE_REMOVED
File removed.FILE_RENAMED
File renamed or moved.FOLDER_ADDED
Folder added.FOLDER_REMOVED
Folder removed.FOLDER_RENAMED
Folder renamed or moved.PROJECT_CLOSE
Project close (always fired at project rename).PROJECT_OPEN
Project open (always fired at project rename).PROJECT_RENAME
Project rename.PROJECT_SETTINGS_CHANGE
Project settings changed, e.g.PROPERTY_ADDED
Property added.PROPERTY_REMOVED
Property removed.PROPERTY_RENAMED
Property renamed or moved.
Field Summary
Fields Modifier and Type Field Description int
bitValue
The bit value.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasBeenPerformed(int bitValue)
Checks if the operation has been performed.static RefactoringOperation
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RefactoringOperation[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
PROPERTY_ADDED
public static final RefactoringOperation PROPERTY_ADDED
Property added.
PROPERTY_RENAMED
public static final RefactoringOperation PROPERTY_RENAMED
Property renamed or moved.
PROPERTY_REMOVED
public static final RefactoringOperation PROPERTY_REMOVED
Property removed.
CONTAINER_ADDED
public static final RefactoringOperation CONTAINER_ADDED
Container added.
CONTAINER_RENAMED
public static final RefactoringOperation CONTAINER_RENAMED
Container renamed or moved.
CONTAINER_REMOVED
public static final RefactoringOperation CONTAINER_REMOVED
Container removed.
FILE_ADDED
public static final RefactoringOperation FILE_ADDED
File added.
FILE_RENAMED
public static final RefactoringOperation FILE_RENAMED
File renamed or moved.
FILE_CHANGED
public static final RefactoringOperation FILE_CHANGED
File changed (contents, markers, etc).
FILE_REMOVED
public static final RefactoringOperation FILE_REMOVED
File removed.
FOLDER_ADDED
public static final RefactoringOperation FOLDER_ADDED
Folder added.
FOLDER_RENAMED
public static final RefactoringOperation FOLDER_RENAMED
Folder renamed or moved.
FOLDER_REMOVED
public static final RefactoringOperation FOLDER_REMOVED
Folder removed.
PROJECT_OPEN
public static final RefactoringOperation PROJECT_OPEN
Project open (always fired at project rename).
PROJECT_CLOSE
public static final RefactoringOperation PROJECT_CLOSE
Project close (always fired at project rename).
PROJECT_RENAME
public static final RefactoringOperation PROJECT_RENAME
Project rename.
PROJECT_SETTINGS_CHANGE
public static final RefactoringOperation PROJECT_SETTINGS_CHANGE
Project settings changed, e.g. Java source folder path(s).
Method Detail
values
public static RefactoringOperation[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (RefactoringOperation c : RefactoringOperation.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static RefactoringOperation valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
hasBeenPerformed
public boolean hasBeenPerformed(int bitValue)
Checks if the operation has been performed.