Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
59 | 5 | 2 | 0.979 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 59 | 1 | src/NHibernate/Criterion/EqPropertyExpression.cs |
2 | 59 | 1 | src/NHibernate/Criterion/GePropertyExpression.cs |
3 | 59 | 1 | src/NHibernate/Criterion/GtPropertyExpression.cs |
4 | 59 | 1 | src/NHibernate/Criterion/LePropertyExpression.cs |
5 | 59 | 1 | src/NHibernate/Criterion/LtPropertyExpression.cs |
| ||||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "equal" constraint /// between two properties. /// </summary> [Serializable] public class EqPropertyExpression : PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public EqPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public EqPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public EqPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class /// that compares two mapped properties using an "equal" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public EqPropertyExpression(string lhsPropertyName, string rhsPropertyName) : base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="EqPropertyExpression"/>. /// </summary> /// <value>The string "<c> = </c>"</value> protected override string Op { get { return " = "; } } } } |
| ||||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "greater than or equal" constraint /// between two properties. /// </summary> [Serializable] public class GePropertyExpression : PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public GePropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public GePropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public GePropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="GePropertyExpression"/> class /// that compares two mapped properties using an "greater than or equal" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public GePropertyExpression(string lhsPropertyName, string rhsPropertyName) : base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>. /// </summary> /// <value>The string "<c> < </c>"</value> protected override string Op { get { return " >= "; } } } } |
| ||||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "greater than" constraint /// between two properties. /// </summary> [Serializable] public class GtPropertyExpression : PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public GtPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public GtPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public GtPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class /// that compares two mapped properties using an "greater than" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public GtPropertyExpression(string lhsPropertyName, string rhsPropertyName) : base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>. /// </summary> /// <value>The string "<c> < </c>"</value> protected override string Op { get { return " > "; } } } } |
| ||||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "less than or equal" constraint /// between two properties. /// </summary> [Serializable] public class LePropertyExpression : PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public LePropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public LePropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public LePropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="LePropertyExpression"/> class /// that compares two mapped properties using an "less than or equal" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public LePropertyExpression(string lhsPropertyName, string rhsPropertyName) : base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="LePropertyExpression"/>. /// </summary> /// <value>The string "<c> <= </c>"</value> protected override string Op { get { return " <= "; } } } } |
| ||||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "less than" constraint /// between two properties. /// </summary> [Serializable] public class LtPropertyExpression : PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public LtPropertyExpression(string lhsPropertyName, IProjection rhsProjection) : base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public LtPropertyExpression(IProjection lhsProjection, IProjection rhsProjection) : base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public LtPropertyExpression(IProjection lhsProjection, string rhsPropertyName) : base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class /// that compares two mapped properties using an "less than" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public LtPropertyExpression(string lhsPropertyName, string rhsPropertyName) : base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>. /// </summary> /// <value>The string "<c> < </c>"</value> protected override string Op { get { return " < "; } } } } |
| |||
using System; namespace NHibernate.Criterion { /// <summary> /// An <see cref="ICriterion"/> that represents an "equal" constraint /// An <see cref="ICriterion"/> that represents an "greater than or equal" constraint /// An <see cref="ICriterion"/> that represents an "greater than" constraint /// An <see cref="ICriterion"/> that represents an "less than or equal" constraint /// An <see cref="ICriterion"/> that represents an "less than" constraint /// between two properties. /// </summary> [Serializable] public class [[#variable50665260]]: PropertyExpression { /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsPropertyName">Name of the LHS property.</param> /// <param name="rhsProjection">The RHS projection.</param> public [[#variable50665260]](string lhsPropertyName, IProjection rhsProjection): base(lhsPropertyName, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The LHS projection.</param> /// <param name="rhsProjection">The RHS projection.</param> public [[#variable50665260]](IProjection lhsProjection, IProjection rhsProjection): base(lhsProjection, rhsProjection) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class. /// Initializes a new instance of the <see cref="GePropertyExpression"/> class. /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class. /// Initializes a new instance of the <see cref="LePropertyExpression"/> class. /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class. /// </summary> /// <param name="lhsProjection">The projection.</param> /// <param name="rhsPropertyName">Name of the RHS property.</param> public [[#variable50665260]](IProjection lhsProjection, string rhsPropertyName): base(lhsProjection, rhsPropertyName) { } /// <summary> /// Initializes a new instance of the <see cref="EqPropertyExpression"/> class /// that compares two mapped properties using an "equal" constraint. /// Initializes a new instance of the <see cref="GePropertyExpression"/> class /// that compares two mapped properties using an "greater than or equal" constraint. /// Initializes a new instance of the <see cref="GtPropertyExpression"/> class /// that compares two mapped properties using an "greater than" constraint. /// Initializes a new instance of the <see cref="LePropertyExpression"/> class /// that compares two mapped properties using an "less than or equal" constraint. /// Initializes a new instance of the <see cref="LtPropertyExpression"/> class /// that compares two mapped properties using an "less than" constraint. /// </summary> /// <param name="lhsPropertyName">The name of the Property to use as the left hand side.</param> /// <param name="rhsPropertyName">The name of the Property to use as the right hand side.</param> public [[#variable50665260]](string lhsPropertyName, string rhsPropertyName): base(lhsPropertyName, rhsPropertyName) { } /// <summary> /// Get the Sql operator to use for the <see cref="EqPropertyExpression"/>. /// Get the Sql operator to use for the <see cref="LtPropertyExpression"/>. /// Get the Sql operator to use for the <see cref="LePropertyExpression"/>. /// </summary> /// <value>The string "<c> = </c>"</value> /// <value>The string "<c> < </c>"</value> /// <value>The string "<c> <= </c>"</value> protected override string Op { get { return [[#variable6bdb95c0]]; } } } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#50665260]] | EqPropertyExpression |
1 | 2 | [[#50665260]] | GePropertyExpression |
1 | 3 | [[#50665260]] | GtPropertyExpression |
1 | 4 | [[#50665260]] | LePropertyExpression |
1 | 5 | [[#50665260]] | LtPropertyExpression |
2 | 1 | [[#6bdb95c0]] | " = " |
2 | 2 | [[#6bdb95c0]] | " >= " |
2 | 3 | [[#6bdb95c0]] | " > " |
2 | 4 | [[#6bdb95c0]] | " <= " |
2 | 5 | [[#6bdb95c0]] | " < " |