| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 30 | 2 | 3 | 0.976 | compilation_unit |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 30 | 1 | src/NHibernate/Hql/Ast/ANTLR/Tree/IsNotNullLogicOperatorNode.cs |
| 2 | 24 | 1 | src/NHibernate/Hql/Ast/ANTLR/Tree/IsNullLogicOperatorNode.cs |
| ||||
using System;
using Antlr.Runtime;
namespace NHibernate.Hql.Ast.ANTLR.Tree
{
/// <summary>
/// IsNotNullLogicOperatorNode implementation
///
/// Author: Steve Ebersole
/// Ported by: Steve Strong
/// </summary>
[CLSCompliant(false)]
public class IsNotNullLogicOperatorNode : AbstractNullnessCheckNode
{
public IsNotNullLogicOperatorNode(IToken token) : base(token)
{
}
protected override int ExpansionConnectorType
{
get { return HqlSqlWalker.OR;
}
}
protected override string ExpansionConnectorText
{
get { return "OR";
}
}
}
}
|
| ||||
using System;
using Antlr.Runtime;
namespace NHibernate.Hql.Ast.ANTLR.Tree
{
/// <summary>
/// Represents a 'is null' check.
/// </summary>
[CLSCompliant(false)]
public class IsNullLogicOperatorNode : AbstractNullnessCheckNode
{
public IsNullLogicOperatorNode(IToken token) : base(token) {
}
protected override int ExpansionConnectorType
{
get { return HqlSqlWalker.AND;
}
}
protected override string ExpansionConnectorText
{
get { return "AND";
}
}
}
}
|
| |||
using System;
using Antlr.Runtime;
namespace NHibernate.Hql.Ast.ANTLR.Tree
{
/// <summary>
/// IsNotNullLogicOperatorNode implementation
///
/// Author: Steve Ebersole
/// Ported by: Steve Strong
/// Represents a 'is null' check.
/// </summary>
[CLSCompliant(false)]
public class [[#variable55123ae0]]: AbstractNullnessCheckNode
{
public [[#variable55123ae0]](IToken token): base(token)
{
}
protected override int ExpansionConnectorType
{
get
{
return HqlSqlWalker. [[#variable55123a40]];
}
}
protected override string ExpansionConnectorText
{
get
{
return [[#variable551239c0]];
}
}
}
}
|
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#55123ae0]] | IsNotNullLogicOperatorNode |
| 1 | 2 | [[#55123ae0]] | IsNullLogicOperatorNode |
| 2 | 1 | [[#55123a40]] | OR |
| 2 | 2 | [[#55123a40]] | AND |
| 3 | 1 | [[#551239c0]] | "OR" |
| 3 | 2 | [[#551239c0]] | "AND" |