public class BracesForTryCatchFinallyRule extends AbstractAstVisitorRule implements groovy.lang.GroovyObject
CLOSURE_TEXT, DEFAULT_CONST_NAME, DEFAULT_FIELD_NAME, DEFAULT_TEST_CLASS_NAMES, DEFAULT_TEST_FILES, DEFAULT_VAR_NAME
Constructor and Description |
---|
BracesForTryCatchFinallyRule() |
applyTo, getApplyToClassNames, getAstVisitor, getDoNotApplyToClassNames, setApplyToClassNames, setDoNotApplyToClassNames, shouldApplyThisRuleTo
applyTo, createViolation, createViolation, createViolation, createViolation, createViolation, createViolationForImport, createViolationForImport, createViolationForImport, getApplyToFileNames, getApplyToFilesMatching, getCompilerPhase, getDescription, getDoNotApplyToFileNames, getDoNotApplyToFilesMatching, getViolationMessage, isEnabled, isReady, setApplyToFileNames, setApplyToFilesMatching, setDescription, setDoNotApplyToFileNames, setDoNotApplyToFilesMatching, setEnabled, setViolationMessage, toString, validate
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
public String getName()
getName
in interface Rule
getName
in class AbstractRule
public void setName(String value)
AbstractRule
setName
in class AbstractRule
value
- - the name for this rule; this should be uniquepublic int getPriority()
getPriority
in interface Rule
getPriority
in class AbstractRule
public void setPriority(int value)
AbstractRule
setPriority
in class AbstractRule
value
- - the priority of this rule, between 1 (highest priority) and 3 (lowest priority), inclusive.public Class getAstVisitorClass()
AbstractAstVisitorRule
getAstVisitorClass
in class AbstractAstVisitorRule
public void setAstVisitorClass(Class value)
public boolean getSameLine()
public boolean isSameLine()
public void setSameLine(boolean value)
public boolean getValidateCatch()
public boolean isValidateCatch()
public void setValidateCatch(boolean value)
public Boolean getCatchOnSameLineAsClosingBrace()
public void setCatchOnSameLineAsClosingBrace(Boolean value)
public Boolean getCatchOnSameLineAsOpeningBrace()
public void setCatchOnSameLineAsOpeningBrace(Boolean value)
public boolean getValidateFinally()
public boolean isValidateFinally()
public void setValidateFinally(boolean value)
public Boolean getFinallyOnSameLineAsClosingBrace()
public void setFinallyOnSameLineAsClosingBrace(Boolean value)
public Boolean getFinallyOnSameLineAsOpeningBrace()
public void setFinallyOnSameLineAsOpeningBrace(Boolean value)
Copyright © 2022. All rights reserved.