org.jboss.aop.advice.annotation.assignability
Enum AssignabilityAlgorithm

java.lang.Object
  extended by java.lang.Enum<AssignabilityAlgorithm>
      extended by org.jboss.aop.advice.annotation.assignability.AssignabilityAlgorithm
All Implemented Interfaces:
Serializable, Comparable<AssignabilityAlgorithm>

public enum AssignabilityAlgorithm
extends Enum<AssignabilityAlgorithm>

Author:
Flavia Rainone

Enum Constant Summary
FROM_VARIABLE
           
VARIABLE_TARGET
           
 
Method Summary
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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

VARIABLE_TARGET

public static final AssignabilityAlgorithm VARIABLE_TARGET

FROM_VARIABLE

public static final AssignabilityAlgorithm FROM_VARIABLE
Method Detail

values

public static final AssignabilityAlgorithm[] values()
Returns an array containing the constants of this enum type, in the order they're 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're 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

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 © 2008 JBoss, a division of Red Hat, Inc.. All Rights Reserved.