Package org.codenarc.rule
Class Violation
- java.lang.Object
-
- org.codenarc.rule.Violation
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class Violation extends Object implements groovy.lang.GroovyObject
-
-
Constructor Summary
Constructors Constructor Description Violation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetLineNumber()StringgetMessage()groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)RulegetRule()StringgetSourceLine()ObjectinvokeMethod(String method, Object arguments)voidsetLineNumber(Integer value)voidsetMessage(String value)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)voidsetRule(Rule value)voidsetSourceLine(String value)StringtoString()
-
-
-
Method Detail
-
getMetaClass
public groovy.lang.MetaClass getMetaClass()
- Specified by:
getMetaClassin interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClassin interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethodin interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getPropertyin interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setPropertyin interfacegroovy.lang.GroovyObject
-
getRule
public Rule getRule()
-
setRule
public void setRule(Rule value)
-
getLineNumber
public Integer getLineNumber()
-
setLineNumber
public void setLineNumber(Integer value)
-
getSourceLine
public String getSourceLine()
-
setSourceLine
public void setSourceLine(String value)
-
getMessage
public String getMessage()
-
setMessage
public void setMessage(String value)
-
-