org.jboss.aop.advice.annotation.assignability
Enum AssignabilityAlgorithm
java.lang.Object
java.lang.Enum<AssignabilityAlgorithm>
org.jboss.aop.advice.annotation.assignability.AssignabilityAlgorithm
- All Implemented Interfaces:
- Serializable, Comparable<AssignabilityAlgorithm>
public enum AssignabilityAlgorithm
- extends Enum<AssignabilityAlgorithm>
- Author:
- Flavia Rainone
VARIABLE_TARGET
public static final AssignabilityAlgorithm VARIABLE_TARGET
FROM_VARIABLE
public static final AssignabilityAlgorithm FROM_VARIABLE
values
public static AssignabilityAlgorithm[] 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 (AssignabilityAlgorithm c : AssignabilityAlgorithm.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static AssignabilityAlgorithm 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 name
NullPointerException
- if the argument is null
getInverseAlgorithm
protected abstract AssignabilityAlgorithm getInverseAlgorithm()
isVariableOperationApplicable
protected abstract boolean isVariableOperationApplicable(Type type,
Type fromType)
assignValue
protected abstract boolean assignValue(Type type,
Type fromType,
VariableHierarchy variableHierarchy)
addBound
protected abstract boolean addBound(Type type,
Type fromType,
VariableHierarchy variableHierarchy)
isAssignable
public boolean isAssignable(Type type,
Type fromType,
VariableHierarchy variableHierarchy)
getConcreteBounds
public static Type[] getConcreteBounds(Type type)
- Parameters:
type
-
- Returns:
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.