CloneSet5074


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
48210.964class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
141231
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java
248225
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java
Clone Instance
1
Line Count
41
Source Line
231
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaSourceViewerConfiguration.java

        /**
         * Returns the Java source code scanner for this configuration.
         *
         * @return the Java source code scanner
         */
        protected RuleBasedScanner getCodeScanner() {
                return fCodeScanner;
        }

        /**
         * Returns the Java multi-line comment scanner for this configuration.
         *
         * @return the Java multi-line comment scanner
         * @since 2.0
         */
        protected RuleBasedScanner getMultilineCommentScanner() {
                return fMultilineCommentScanner;
        }

        /**
         * Returns the Java single-line comment scanner for this configuration.
         *
         * @return the Java single-line comment scanner
         * @since 2.0
         */
        protected RuleBasedScanner getSinglelineCommentScanner() {
                return fSinglelineCommentScanner;
        }

        /**
         * Returns the Java string scanner for this configuration.
         *
         * @return the Java string scanner
         * @since 2.0
         */
        protected RuleBasedScanner getStringScanner() {
                return fStringScanner;
        }

        /**
         * Returns the JavaDoc scanner for this configuration.
         *
         * @return the JavaDoc scanner
         */
        protected RuleBasedScanner getJavaDocScanner() {
                return fJavaDocScanner;
        }


Clone Instance
2
Line Count
48
Source Line
225
Source File
plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/text/JavaTextTools.java

        /**
         * Returns a scanner which is configured to scan Java source code.
         *
         * @return a Java source code scanner
         * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getCodeScanner()}
         */
        public RuleBasedScanner getCodeScanner() {
                return fCodeScanner;
        }

        /**
         * Returns a scanner which is configured to scan Java multi-line comments.
         *
         * @return a Java multi-line comment scanner
         * @since 2.0
         * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getMultilineCommentScanner()}
         */
        public RuleBasedScanner getMultilineCommentScanner() {
                return fMultilineCommentScanner;
        }

        /**
         * Returns a scanner which is configured to scan Java single-line comments.
         *
         * @return a Java single-line comment scanner
         * @since 2.0
         * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getSinglelineCommentScanner()}
         */
        public RuleBasedScanner getSinglelineCommentScanner() {
                return fSinglelineCommentScanner;
        }

        /**
         * Returns a scanner which is configured to scan Java strings.
         *
         * @return a Java string scanner
         * @since 2.0
         * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getStringScanner()}
         */
        public RuleBasedScanner getStringScanner() {
                return fStringScanner;
        }

        /**
         * Returns a scanner which is configured to scan JavaDoc compliant comments.
         * <p>
         * Note that the start sequence "/**" and the corresponding end sequence
         * are part of the Javadoc comment.</p>
         *
         * @return a Javadoc scanner
         * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getJavaDocScanner()}
         */
        public RuleBasedScanner getJavaDocScanner() {
                return fJavaDocScanner;
        }


Clone AbstractionParameter Count: 1Parameter Bindings

 [[#variable58841740]]RuleBasedScanner getCodeScanner() {
  return fCodeScanner;
}

 [[#variable58841740]]RuleBasedScanner getMultilineCommentScanner() {
  return fMultilineCommentScanner;
}

 [[#variable58841740]]RuleBasedScanner getSinglelineCommentScanner() {
  return fSinglelineCommentScanner;
}

 [[#variable58841740]]RuleBasedScanner getStringScanner() {
  return fStringScanner;
}

 [[#variable58841740]]RuleBasedScanner getJavaDocScanner() {
  return fJavaDocScanner;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58841740]]
/**
 * Returns a scanner which is configured to scan Java source code.
 *
 * @return a Java source code scanner
 * @deprecated As of 3.0, replaced by {@link JavaSourceViewerConfiguration#getCodeScanner()}
 */
public 
12[[#58841740]]
/**
 * Returns the Java source code scanner for this configuration.
 *
 * @return the Java source code scanner
 */
protected