Package com.tonic.analysis.dependency
Enum DependencyType
- java.lang.Object
-
- java.lang.Enum<DependencyType>
-
- com.tonic.analysis.dependency.DependencyType
-
- All Implemented Interfaces:
Serializable,Comparable<DependencyType>
public enum DependencyType extends Enum<DependencyType>
Types of dependencies between classes.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATIONAnnotation typeARRAY_COMPONENTArray component typeCLASS_LITERALClass literal (e.g., SomeClass.class)EXCEPTIONException type (catch/throws)EXTENDSExtends (superclass)FIELD_ACCESSField access targetFIELD_TYPEField typeIMPLEMENTSImplements (interface)LOCAL_TYPELocal variable typeMETHOD_CALLMethod call targetPARAMETER_TYPEMethod parameter typeRETURN_TYPEMethod return typeTYPE_CHECKType cast or instanceofTYPE_PARAMETERGeneric type parameter
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DependencyTypevalueOf(String name)Returns the enum constant of this type with the specified name.static DependencyType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EXTENDS
public static final DependencyType EXTENDS
Extends (superclass)
-
IMPLEMENTS
public static final DependencyType IMPLEMENTS
Implements (interface)
-
FIELD_TYPE
public static final DependencyType FIELD_TYPE
Field type
-
PARAMETER_TYPE
public static final DependencyType PARAMETER_TYPE
Method parameter type
-
RETURN_TYPE
public static final DependencyType RETURN_TYPE
Method return type
-
LOCAL_TYPE
public static final DependencyType LOCAL_TYPE
Local variable type
-
METHOD_CALL
public static final DependencyType METHOD_CALL
Method call target
-
FIELD_ACCESS
public static final DependencyType FIELD_ACCESS
Field access target
-
EXCEPTION
public static final DependencyType EXCEPTION
Exception type (catch/throws)
-
ANNOTATION
public static final DependencyType ANNOTATION
Annotation type
-
ARRAY_COMPONENT
public static final DependencyType ARRAY_COMPONENT
Array component type
-
TYPE_CHECK
public static final DependencyType TYPE_CHECK
Type cast or instanceof
-
CLASS_LITERAL
public static final DependencyType CLASS_LITERAL
Class literal (e.g., SomeClass.class)
-
TYPE_PARAMETER
public static final DependencyType TYPE_PARAMETER
Generic type parameter
-
-
Method Detail
-
values
public static DependencyType[] 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 (DependencyType c : DependencyType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DependencyType 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
-
-