Enum DependencyContext
- java.lang.Object
-
- java.lang.Enum<DependencyContext>
-
- com.hello2morrow.sonargraph.core.api.model.DependencyContext
-
- All Implemented Interfaces:
IDependencyContext,java.io.Serializable,java.lang.Comparable<DependencyContext>
public enum DependencyContext extends java.lang.Enum<DependencyContext> implements IDependencyContext
Language agnostic dependency context enumeration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EXCEPTIONFIELDINHERITANCEINSTRUCTIONMETHODPARAMETERRETURNTYPEVARIABLEVIA_SUBTYPE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.hello2morrow.sonargraph.core.model.programming.IParserDependencyContextgetContext()Internal use onlyIDependencyContextgetGenericDependencyContext()Internal use onlystatic DependencyContextmap(com.hello2morrow.sonargraph.core.model.programming.IParserDependencyContext dependencyContext)Internal use onlybooleanmatches(com.hello2morrow.sonargraph.core.model.programming.ParserDependency dependency)Internal use onlystatic DependencyContextvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static DependencyContext[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INHERITANCE
public static final DependencyContext INHERITANCE
-
TYPE
public static final DependencyContext TYPE
-
FIELD
public static final DependencyContext FIELD
-
METHOD
public static final DependencyContext METHOD
-
RETURN
public static final DependencyContext RETURN
-
EXCEPTION
public static final DependencyContext EXCEPTION
-
PARAMETER
public static final DependencyContext PARAMETER
-
VARIABLE
public static final DependencyContext VARIABLE
-
INSTRUCTION
public static final DependencyContext INSTRUCTION
-
VIA_SUBTYPE
public static final DependencyContext VIA_SUBTYPE
-
-
Method Detail
-
values
public static DependencyContext[] 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 (DependencyContext c : DependencyContext.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DependencyContext 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
-
getContext
public com.hello2morrow.sonargraph.core.model.programming.IParserDependencyContext getContext()
Internal use only- Specified by:
getContextin interfaceIDependencyContext
-
matches
public boolean matches(com.hello2morrow.sonargraph.core.model.programming.ParserDependency dependency)
Internal use only- Specified by:
matchesin interfaceIDependencyContext
-
getGenericDependencyContext
public IDependencyContext getGenericDependencyContext()
Internal use only- Specified by:
getGenericDependencyContextin interfaceIDependencyContext- Returns:
- A language independent dependency context classifier
-
map
public static DependencyContext map(com.hello2morrow.sonargraph.core.model.programming.IParserDependencyContext dependencyContext)
Internal use only
-
-