Enum TriggerUsage
- java.lang.Object
-
- java.lang.Enum<TriggerUsage>
-
- net.sourceforge.pmd.lang.apex.ast.TriggerUsage
-
- All Implemented Interfaces:
Serializable
,Comparable<TriggerUsage>
public enum TriggerUsage extends Enum<TriggerUsage>
This maps the apex enumTriggerUsage
to the PMD equivalent.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AFTER_DELETE
AFTER_INSERT
AFTER_UNDELETE
AFTER_UPDATE
BEFORE_DELETE
BEFORE_INSERT
BEFORE_UNDELETE
BEFORE_UPDATE
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static TriggerUsage
of(apex.jorje.data.ast.TriggerUsage apexTriggerUsage)
static TriggerUsage
valueOf(String name)
Returns the enum constant of this type with the specified name.static TriggerUsage[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AFTER_DELETE
public static final TriggerUsage AFTER_DELETE
-
AFTER_INSERT
public static final TriggerUsage AFTER_INSERT
-
AFTER_UNDELETE
public static final TriggerUsage AFTER_UNDELETE
-
AFTER_UPDATE
public static final TriggerUsage AFTER_UPDATE
-
BEFORE_DELETE
public static final TriggerUsage BEFORE_DELETE
-
BEFORE_INSERT
public static final TriggerUsage BEFORE_INSERT
-
BEFORE_UNDELETE
public static final TriggerUsage BEFORE_UNDELETE
-
BEFORE_UPDATE
public static final TriggerUsage BEFORE_UPDATE
-
-
Method Detail
-
values
public static TriggerUsage[] 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 (TriggerUsage c : TriggerUsage.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TriggerUsage 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
-
of
public static TriggerUsage of(apex.jorje.data.ast.TriggerUsage apexTriggerUsage)
-
-