Class CompositeSource
java.lang.Object
org.variantsync.diffdetective.util.CompositeSource
- All Implemented Interfaces:
Source
Represents a
Source without arguments.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a short, one line explanation or identifier of this source.Returns a list of sources that influenced this source.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.variantsync.diffdetective.util.Source
fullExplanation, functionExplanation, getRootSource, getSourceArguments, shallowExplanation
-
Field Details
-
sourceExplanation
-
sources
-
-
Constructor Details
-
CompositeSource
- Parameters:
sourceExplanation- is returned verbatim bygetSourceExplanation()sources- is returned as immutable list bygetSources()
-
-
Method Details
-
getSourceExplanation
Description copied from interface:SourceReturns a short, one line explanation or identifier of this source. The result is used bySource.shallowExplanation()and is formatted together withSource.getSourceArguments()like"sourceExplanation(argument1, argument2)".- Specified by:
getSourceExplanationin interfaceSource
-
getSources
Description copied from interface:SourceReturns a list of sources that influenced this source. Noteworthy processing steps and incorporation of multiple sources are implemented as a tree of sources. This functions returns the children of this source.By default, the first child source is treated specially in
Source.getRootSource().- Specified by:
getSourcesin interfaceSource- Returns:
- an empty list by default
-
toString
-