Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
26 | 2 | 5 | 0.968 | compilation_unit |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 26 | 1 | src/NHibernate/Hql/Ast/ANTLR/ASTQueryTranslatorFactory.cs |
2 | 27 | 1 | src/NHibernate/Hql/Classic/ClassicQueryTranslatorFactory.cs |
| ||||
using System.Collections.Generic; using NHibernate.Engine; namespace NHibernate.Hql.Ast.ANTLR { /// <summary> /// Generates translators which uses the Antlr-based parser to perform /// the translation. /// /// Author: Gavin King /// Ported by: Steve Strong /// </summary> public class ASTQueryTranslatorFactory : IQueryTranslatorFactory { public IQueryTranslator CreateQueryTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new QueryTranslatorImpl(queryIdentifier, queryString, filters, factory); } public IFilterTranslator CreateFilterTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new QueryTranslatorImpl(queryIdentifier, queryString, filters, factory); } } } |
| ||||
using System.Collections.Generic; using NHibernate.Engine; namespace NHibernate.Hql.Classic { /// <summary> /// Generates translators which uses the older hand-written parser to perform the translation. /// </summary> public class ClassicQueryTranslatorFactory : IQueryTranslatorFactory { #region IQueryTranslatorFactory Members public IQueryTranslator CreateQueryTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new QueryTranslator(queryIdentifier, queryString, filters, factory); } public IFilterTranslator CreateFilterTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new QueryTranslator(queryIdentifier, queryString, filters, factory); } #endregion } } |
| |||
using System.Collections.Generic; using NHibernate.Engine; namespace [[#variable6789d340]]. [[#variable6789d2a0]]. [[#variable6789d240]] { /// <summary> /// Generates translators which uses the Antlr-based parser to perform /// the translation. /// /// Author: Gavin King /// Ported by: Steve Strong /// Generates translators which uses the older hand-written parser to perform the translation. /// </summary> public class [[#variable6789d1c0]]: IQueryTranslatorFactory { #region IQueryTranslatorFactory Members public IQueryTranslator CreateQueryTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new [[#variable6789d160]](queryIdentifier, queryString, filters, factory); } public IFilterTranslator CreateFilterTranslator(string queryIdentifier, string queryString, IDictionary<string, IFilter> filters, ISessionFactoryImplementor factory) { return new [[#variable6789d160]](queryIdentifier, queryString, filters, factory); } #endregion } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#6789d340]] | NHibernate.Hql |
1 | 2 | [[#6789d340]] | NHibernate |
2 | 1 | [[#6789d2a0]] | Ast |
2 | 2 | [[#6789d2a0]] | Hql |
3 | 1 | [[#6789d240]] | ANTLR |
3 | 2 | [[#6789d240]] | Classic |
4 | 1 | [[#6789d1c0]] | ASTQueryTranslatorFactory |
4 | 2 | [[#6789d1c0]] | ClassicQueryTranslatorFactory |
5 | 1 | [[#6789d160]] | QueryTranslatorImpl |
5 | 2 | [[#6789d160]] | QueryTranslator |