Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
27 | 2 | 3 | 0.976 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 27 | 1 | src/NHibernate/Criterion/Conjunction.cs |
2 | 27 | 1 | src/NHibernate/Criterion/Disjunction.cs |
| ||||
using System; using NHibernate.SqlCommand; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that Junctions together multiple /// <see cref="ICriterion"/>s with an <c>and</c> /// </summary> [Serializable] public class Conjunction : Junction { /// <summary> /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s. /// </summary> /// <value>The string "<c> and </c>"</value> protected override string Op { get { return " and "; } } protected override SqlString EmptyExpression { get { return new SqlString("1=1"); } } } } |
| ||||
using System; using NHibernate.SqlCommand; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that Junctions together multiple /// <see cref="ICriterion"/>s with an <c>or</c> /// </summary> [Serializable] public class Disjunction : Junction { /// <summary> /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s. /// </summary> /// <value>The string "<c> or </c>"</value> protected override string Op { get { return " or "; } } protected override SqlString EmptyExpression { get { return new SqlString("1=0"); } } } } |
| |||
using System; using NHibernate.SqlCommand; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that Junctions together multiple /// <see cref="ICriterion"/>s with an <c>and</c> /// <see cref="ICriterion"/>s with an <c>or</c> /// </summary> [Serializable] public class [[#variable27f2e120]]: Junction { /// <summary> /// Get the Sql operator to put between multiple <see cref="ICriterion"/>s. /// </summary> /// <value>The string "<c> and </c>"</value> /// <value>The string "<c> or </c>"</value> protected override string Op { get { return [[#variable27f2e0c0]]; } } protected override SqlString EmptyExpression { get { return new SqlString( [[#variable27f2e040]]); } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#27f2e120]] | Conjunction |
1 | 2 | [[#27f2e120]] | Disjunction |
2 | 1 | [[#27f2e0c0]] | " and " |
2 | 2 | [[#27f2e0c0]] | " or " |
3 | 1 | [[#27f2e040]] | "1=1" |
3 | 2 | [[#27f2e040]] | "1=0" |