Package org.jboss.windup.tooling.data
Enum QuickfixType
- java.lang.Object
-
- java.lang.Enum<QuickfixType>
-
- org.jboss.windup.tooling.data.QuickfixType
-
- All Implemented Interfaces:
Serializable,Comparable<QuickfixType>
public enum QuickfixType extends Enum<QuickfixType>
- Author:
- Jesse Sightler
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DELETE_LINEIt searches for a token and deletes whole found lineINSERT_LINEIt searches for a token and inserts a new line after found lineREGULAR_EXPRESSIONTransforms via a regular expression.REPLACEIt searches for token and replaces it by another tokenTRANSFORMATIONTransforms based upon a custom Java implementation of a transformer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static QuickfixTypevalueOf(String name)Returns the enum constant of this type with the specified name.static QuickfixType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REPLACE
public static final QuickfixType REPLACE
It searches for token and replaces it by another token
-
DELETE_LINE
public static final QuickfixType DELETE_LINE
It searches for a token and deletes whole found line
-
INSERT_LINE
public static final QuickfixType INSERT_LINE
It searches for a token and inserts a new line after found line
-
REGULAR_EXPRESSION
public static final QuickfixType REGULAR_EXPRESSION
Transforms via a regular expression.
-
TRANSFORMATION
public static final QuickfixType TRANSFORMATION
Transforms based upon a custom Java implementation of a transformer.
-
-
Method Detail
-
values
public static QuickfixType[] 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 (QuickfixType c : QuickfixType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QuickfixType valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<QuickfixType>
-
-