public enum AssignabilityAlgorithm extends Enum<AssignabilityAlgorithm>
Enum Constant and Description |
---|
FROM_VARIABLE |
VARIABLE_TARGET |
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
addBound(Type type,
Type fromType,
VariableHierarchy variableHierarchy) |
protected abstract boolean |
assignValue(Type type,
Type fromType,
VariableHierarchy variableHierarchy) |
static Type[] |
getConcreteBounds(Type type) |
protected abstract AssignabilityAlgorithm |
getInverseAlgorithm() |
boolean |
isAssignable(Type type,
Type fromType,
VariableHierarchy variableHierarchy) |
protected abstract boolean |
isVariableOperationApplicable(Type type,
Type fromType) |
static AssignabilityAlgorithm |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AssignabilityAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AssignabilityAlgorithm VARIABLE_TARGET
public static final AssignabilityAlgorithm FROM_VARIABLE
public static AssignabilityAlgorithm[] values()
for (AssignabilityAlgorithm c : AssignabilityAlgorithm.values()) System.out.println(c);
public static AssignabilityAlgorithm valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullprotected abstract AssignabilityAlgorithm getInverseAlgorithm()
protected abstract boolean isVariableOperationApplicable(Type type, Type fromType)
protected abstract boolean assignValue(Type type, Type fromType, VariableHierarchy variableHierarchy)
protected abstract boolean addBound(Type type, Type fromType, VariableHierarchy variableHierarchy)
public boolean isAssignable(Type type, Type fromType, VariableHierarchy variableHierarchy)
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.