Enum InferenceRuleType
- java.lang.Object
-
- java.lang.Enum<InferenceRuleType>
-
- net.sourceforge.pmd.lang.java.typeresolution.typeinference.InferenceRuleType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<InferenceRuleType>
public enum InferenceRuleType extends java.lang.Enum<InferenceRuleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
EQUALITY
https://docs.oracle.com/javase/specs/jls/se8/html/jls-18.html#jls-18.2.4LOOSE_INVOCATION
SUBTYPE
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.util.List<BoundOrConstraint>
reduce(BoundOrConstraint constraint)
static InferenceRuleType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static InferenceRuleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUALITY
public static final InferenceRuleType EQUALITY
https://docs.oracle.com/javase/specs/jls/se8/html/jls-18.html#jls-18.2.4
-
SUBTYPE
public static final InferenceRuleType SUBTYPE
-
LOOSE_INVOCATION
public static final InferenceRuleType LOOSE_INVOCATION
-
CONTAINS
public static final InferenceRuleType CONTAINS
-
-
Method Detail
-
values
public static InferenceRuleType[] 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 (InferenceRuleType c : InferenceRuleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InferenceRuleType 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
-
reduce
public abstract java.util.List<BoundOrConstraint> reduce(BoundOrConstraint constraint)
-
-