de.frag.umlplugin.psi
Class DependencyReason

java.lang.Object
  extended by de.frag.umlplugin.psi.DependencyReason

public class DependencyReason
extends java.lang.Object

Describes a reason for a dependency.


Constructor Summary
DependencyReason(UsageType usageType, int offset)
          Creates a new dependency reason.
 
Method Summary
 int getOffset()
          Gets source offset.
 UsageType getUsageType()
          Gets usage type.
 java.lang.String toString()
          Creates a string representation of this reason.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DependencyReason

public DependencyReason(@NotNull
                        UsageType usageType,
                        int offset)
Creates a new dependency reason.

Parameters:
usageType - usage type of dependency
offset - source offset
Method Detail

getUsageType

@NotNull
public UsageType getUsageType()
Gets usage type.

Returns:
usage type

getOffset

public int getOffset()
Gets source offset.

Returns:
source offset

toString

@NotNull
public java.lang.String toString()
Creates a string representation of this reason.

Overrides:
toString in class java.lang.Object
Returns:
string representation