Class ApplicabilityDependencyCommentLeaf
java.lang.Object
de.hsh.graja.comment.applicability.ApplicabilityDependencyCommentLeaf
- All Implemented Interfaces:
ApplicabilityDependency,Applicable,Serializable,Cloneable
An object D of this class defines a dependency on a given comment C.
D can be transitive or non-transitive. The method
calcApplicability(ApplicabilityFilter) calculates the applicability
that results from D. If D is transitive, then
the calculated applicability includes the own applicability of C and also the
dependencies of C. If D is non-transitive, then the calculated applicability
includes the own applicability of C only.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionApplicabilityDependencyCommentLeaf(Content comment, boolean isTransitive) Create -
Method Summary
Modifier and TypeMethodDescriptioncalcApplicability(ApplicabilityFilter filter) Calculates the applicability that results from this dependency object D.clone()booleanimplements the contract ofObject.equals(Object).inthashCode()implements the contract ofObject.hashCode().booleantoString()
-
Constructor Details
-
ApplicabilityDependencyCommentLeaf
Create- Parameters:
comment- the depended on commentisTransitive- true means transitive.
-
-
Method Details
-
calcApplicability
Calculates the applicability that results from this dependency object D. If D is transitive, then the calculated applicability includes the own applicability of C and also the dependencies of C. If D is non-transitive, then the calculated applicability includes the own applicability of C only.- Specified by:
calcApplicabilityin interfaceApplicable- Parameters:
filter- filter- Returns:
- the calculated applicability
-
getComment
- Returns:
- the depended on comment
-
isTransitive
public boolean isTransitive()- Returns:
- whether transitive or not
-
toString
-
clone
- Specified by:
clonein interfaceApplicabilityDependency- Overrides:
clonein classObject- Returns:
- a clone
- See Also:
-
hashCode
public int hashCode()implements the contract ofObject.hashCode(). -
equals
implements the contract ofObject.equals(Object). In order to prevent stack overflows in cyclic dependency situations this is not an exact equals method.
-