Package com.ibm.wala.util.ssa
Enum ParameterAccessor.BasedOn
- java.lang.Object
-
- java.lang.Enum<ParameterAccessor.BasedOn>
-
- com.ibm.wala.util.ssa.ParameterAccessor.BasedOn
-
- All Implemented Interfaces:
Serializable
,Comparable<ParameterAccessor.BasedOn>
- Enclosing class:
- ParameterAccessor
public static enum ParameterAccessor.BasedOn extends Enum<ParameterAccessor.BasedOn>
The Constructor used to create ParameterAccessor influences the parameter-offset. If this enum is extended many functions will throw if not also extended.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description IMETHOD
ParameterAccessor was constructed using an IMethodMETHOD_REFERENCE
ParameterAccessor was constructed using a MethodReference
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ParameterAccessor.BasedOn
valueOf(String name)
Returns the enum constant of this type with the specified name.static ParameterAccessor.BasedOn[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IMETHOD
public static final ParameterAccessor.BasedOn IMETHOD
ParameterAccessor was constructed using an IMethod
-
METHOD_REFERENCE
public static final ParameterAccessor.BasedOn METHOD_REFERENCE
ParameterAccessor was constructed using a MethodReference
-
-
Method Detail
-
values
public static ParameterAccessor.BasedOn[] 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 (ParameterAccessor.BasedOn c : ParameterAccessor.BasedOn.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ParameterAccessor.BasedOn 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
-
-