|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.odem.TypeDependency<S,T>
public abstract class TypeDependency<S extends IType,T extends IType>
This abstract dependency class implements some convenience methods to find out the kind of dependency between two types.
Constructor Summary | |
---|---|
TypeDependency()
Initialize the new instance with default values. |
Method Summary | |
---|---|
boolean |
isDerived()
Returns true if the source type of this dependency either extends or implements the target type. |
boolean |
isExtension()
Returns true if the source type of this dependency extends the target type. |
boolean |
isImplementation()
Returns true if the source type of this dependency implements the target (interface) type. |
boolean |
isParamTypeInMethod()
Returns true if the target type of this dependency is the type of a method parameter in one of the source type's methods. |
boolean |
isReferencedInMethodSignature()
Returns true if the target type of this dependency is used in one of the source type's methods. |
boolean |
isReturnTypeOfMethod()
Returns true if the target type of this dependency is the type of a method parameter in one of the source type's methods. |
boolean |
isTypeOfField()
Returns true if the target type of this dependency is the type of a field (i.e. instance variable or static variable) in source type. |
boolean |
isTypeOfLocalVariable()
Returns true if the target type of this dependency is the type of a local variable (i.e. a field declared locally inside a method) in source type. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.pfsw.odem.IDependency |
---|
getDependencyClassification, getSourceElement, getTargetElement |
Methods inherited from interface org.pfsw.odem.IObjectProperties |
---|
getProperty, getPropertyNames, setProperty |
Constructor Detail |
---|
public TypeDependency()
Method Detail |
---|
public boolean isReferencedInMethodSignature()
public boolean isDerived()
public boolean isParamTypeInMethod()
public boolean isReturnTypeOfMethod()
public boolean isTypeOfField()
public boolean isTypeOfLocalVariable()
public boolean isExtension()
public boolean isImplementation()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |