public class ClassInformationDependency extends AnalyzableElementDependency<ClassInformation,ClassInformation>
Modifier and Type | Field and Description |
---|---|
static ClassInformationDependency[] |
EMPTY_ARRAY |
static java.lang.String |
EXTENDS |
static java.lang.String |
IMPLEMENTS |
static java.lang.String |
USES |
TXT_EXTENDS, TXT_IMPLEMENTS, TXT_NEEDS, TXT_USES
Constructor and Description |
---|
ClassInformationDependency(ClassInformation fromClass,
ClassInformation toClass)
Initialize the new instance with default values.
|
ClassInformationDependency(ClassInformation fromClass,
ClassInformation toClass,
org.pfsw.odem.DependencyClassification type)
Initialize the new instance.
|
Modifier and Type | Method and Description |
---|---|
protected CollectionUtil |
coll() |
java.lang.String |
getDependencyType()
Returns the text ID for type of this dependency.
|
ClassInformation |
getSource() |
ClassInformation |
getSourceElement()
Returns the element that depends on the target element
|
ClassInformation |
getTarget() |
ClassInformation |
getTargetElement()
Returns the element the source element depends on
|
protected void |
init() |
protected java.lang.String |
inspectString()
Returns a string representation that is more convenient for object
inspection with JOI.
|
boolean |
isExtendsDependency() |
boolean |
isImplementsDependency() |
boolean |
isInheritanceDependency()
Returns true if the dependency is due to an inheritance (i.e.
|
boolean |
isUsesDependency() |
protected void |
setSource(ClassInformation newValue) |
protected void |
setTarget(ClassInformation newValue) |
getClassDependencies, getDependencyClassification, getOtherProperties, getProperty, getPropertyNames, getWorkset, setDependencyClassification, setOtherProperties, setProperty, toString
public static final ClassInformationDependency[] EMPTY_ARRAY
public static final java.lang.String EXTENDS
public static final java.lang.String IMPLEMENTS
public static final java.lang.String USES
public ClassInformationDependency(ClassInformation fromClass, ClassInformation toClass)
public ClassInformationDependency(ClassInformation fromClass, ClassInformation toClass, org.pfsw.odem.DependencyClassification type)
fromClass
- The class which depends on the toClasstoClass
- The class the fromClass depends ontype
- The dependency type.public ClassInformation getSource()
public ClassInformation getTarget()
public boolean isUsesDependency()
public boolean isExtendsDependency()
public boolean isImplementsDependency()
public boolean isInheritanceDependency()
public ClassInformation getSourceElement()
getSourceElement
in interface org.pfsw.odem.IDependency<ClassInformation,ClassInformation>
getSourceElement
in class AnalyzableElementDependency<ClassInformation,ClassInformation>
public ClassInformation getTargetElement()
getTargetElement
in interface org.pfsw.odem.IDependency<ClassInformation,ClassInformation>
getTargetElement
in class AnalyzableElementDependency<ClassInformation,ClassInformation>
public java.lang.String getDependencyType()
getDependencyType
in class AnalyzableElementDependency<ClassInformation,ClassInformation>
protected void init()
protected void setSource(ClassInformation newValue)
protected void setTarget(ClassInformation newValue)
protected java.lang.String inspectString()
protected CollectionUtil coll()