org.codenarc.rule.imports
Class ImportFromSamePackageRule

java.lang.Object
  extended by org.codenarc.rule.AbstractRule
      extended by org.codenarc.rule.imports.ImportFromSamePackageRule
All Implemented Interfaces:
groovy.lang.GroovyObject, Rule

public class ImportFromSamePackageRule
extends AbstractRule
implements groovy.lang.GroovyObject


Constructor Summary
ImportFromSamePackageRule()
           
 
Method Summary
 void applyTo(SourceCode sourceCode, java.util.List violations)
           
 groovy.lang.MetaClass getMetaClass()
           
 java.lang.String getName()
           
 int getPriority()
           
 java.lang.Object getProperty(java.lang.String property)
           
 java.lang.Object invokeMethod(java.lang.String method, java.lang.Object arguments)
           
 void setMetaClass(groovy.lang.MetaClass mc)
           
 void setName(java.lang.String value)
           
 void setPriority(int value)
           
 void setProperty(java.lang.String property, java.lang.Object value)
           
 
Methods inherited from class org.codenarc.rule.AbstractRule
applyTo, createViolation, createViolation, createViolation, createViolation, createViolation, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getEnabled, getImportsSortedByLineNumber, getLOG, getViolationMessage, isEnabled, isReady, packageNameForImport, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setViolationMessage, sourceLineAndNumberForImport, sourceLineAndNumberForImport, toString, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportFromSamePackageRule

public ImportFromSamePackageRule()
Method Detail

getMetaClass

public groovy.lang.MetaClass getMetaClass()
Specified by:
getMetaClass in interface groovy.lang.GroovyObject
Overrides:
getMetaClass in class AbstractRule

setMetaClass

public void setMetaClass(groovy.lang.MetaClass mc)
Specified by:
setMetaClass in interface groovy.lang.GroovyObject
Overrides:
setMetaClass in class AbstractRule

invokeMethod

public java.lang.Object invokeMethod(java.lang.String method,
                                     java.lang.Object arguments)
Specified by:
invokeMethod in interface groovy.lang.GroovyObject
Overrides:
invokeMethod in class AbstractRule

getProperty

public java.lang.Object getProperty(java.lang.String property)
Specified by:
getProperty in interface groovy.lang.GroovyObject
Overrides:
getProperty in class AbstractRule

setProperty

public void setProperty(java.lang.String property,
                        java.lang.Object value)
Specified by:
setProperty in interface groovy.lang.GroovyObject
Overrides:
setProperty in class AbstractRule

getName

public java.lang.String getName()
Specified by:
getName in interface Rule
Specified by:
getName in class AbstractRule

setName

public void setName(java.lang.String value)
Specified by:
setName in class AbstractRule

getPriority

public int getPriority()
Specified by:
getPriority in interface Rule
Specified by:
getPriority in class AbstractRule

setPriority

public void setPriority(int value)
Specified by:
setPriority in class AbstractRule

applyTo

public void applyTo(SourceCode sourceCode,
                    java.util.List violations)
Specified by:
applyTo in class AbstractRule


Copyright © 2011. All Rights Reserved.