org.sonar.squid.api
Enum SourceCodeEdgeUsage

java.lang.Object
  extended by java.lang.Enum<SourceCodeEdgeUsage>
      extended by org.sonar.squid.api.SourceCodeEdgeUsage
All Implemented Interfaces:
Serializable, Comparable<SourceCodeEdgeUsage>

public enum SourceCodeEdgeUsage
extends Enum<SourceCodeEdgeUsage>


Enum Constant Summary
CALLS_FIELD
           
CALLS_METHOD
           
CONTAINS
          Example: class A declares a field of type B
EXTENDS
          Example: class A extends class B
IMPLEMENTS
          Example: class A implements an interface B
NO_LINK
          Unknown type
USES
          Examples: method A returns an object of type B method A declares a parameter of type B method A throws an exception of type B method A catch an exception of type B
 
Method Summary
static SourceCodeEdgeUsage valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SourceCodeEdgeUsage[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXTENDS

public static final SourceCodeEdgeUsage EXTENDS
Example: class A extends class B


IMPLEMENTS

public static final SourceCodeEdgeUsage IMPLEMENTS
Example: class A implements an interface B


USES

public static final SourceCodeEdgeUsage USES
Examples:


CALLS_FIELD

public static final SourceCodeEdgeUsage CALLS_FIELD

CALLS_METHOD

public static final SourceCodeEdgeUsage CALLS_METHOD

CONTAINS

public static final SourceCodeEdgeUsage CONTAINS
Example: class A declares a field of type B


NO_LINK

public static final SourceCodeEdgeUsage NO_LINK
Unknown type

Method Detail

values

public static SourceCodeEdgeUsage[] 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 (SourceCodeEdgeUsage c : SourceCodeEdgeUsage.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SourceCodeEdgeUsage 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


Copyright © 2009-2012 SonarSource. All Rights Reserved.