Package org.codenarc.rule.comments
Class CommentsUtil
- java.lang.Object
-
- org.codenarc.rule.comments.CommentsUtil
-
- All Implemented Interfaces:
groovy.lang.GroovyObject
public class CommentsUtil extends Object implements groovy.lang.GroovyObject
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringJAVADOC_ANY_LINESprotected static StringJAVADOC_EMPTY_LINEprotected static StringJAVADOC_ENDprotected static StringJAVADOC_LINE_PREFIXprotected static StringJAVADOC_LINE_WITH_TEXTprotected static StringJAVADOC_STARTprotected static StringNEW_LINEprotected static StringNON_WHITESPACE_CHARSprotected static StringOPTIONAL_WHITESPACEprotected static StringRELUCTANTprotected static StringWHITESPACE
-
Constructor Summary
Constructors Constructor Description CommentsUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description groovy.lang.MetaClassgetMetaClass()ObjectgetProperty(String property)protected static Stringgroup(String inside)protected static booleanhasTextOnNextLine(SourceCode sourceCode, int lineNumber)ObjectinvokeMethod(String method, Object arguments)voidsetMetaClass(groovy.lang.MetaClass mc)voidsetProperty(String property, Object value)
-
-
-
Field Detail
-
WHITESPACE
protected static final String WHITESPACE
- See Also:
- Constant Field Values
-
OPTIONAL_WHITESPACE
protected static final String OPTIONAL_WHITESPACE
- See Also:
- Constant Field Values
-
NON_WHITESPACE_CHARS
protected static final String NON_WHITESPACE_CHARS
- See Also:
- Constant Field Values
-
NEW_LINE
protected static final String NEW_LINE
- See Also:
- Constant Field Values
-
RELUCTANT
protected static final String RELUCTANT
-
JAVADOC_START
protected static final String JAVADOC_START
- See Also:
- Constant Field Values
-
JAVADOC_ANY_LINES
protected static final String JAVADOC_ANY_LINES
-
JAVADOC_EMPTY_LINE
protected static final String JAVADOC_EMPTY_LINE
- See Also:
- Constant Field Values
-
JAVADOC_END
protected static final String JAVADOC_END
- See Also:
- Constant Field Values
-
JAVADOC_LINE_PREFIX
protected static final String JAVADOC_LINE_PREFIX
- See Also:
- Constant Field Values
-
JAVADOC_LINE_WITH_TEXT
protected static final String JAVADOC_LINE_WITH_TEXT
-
-
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
-
hasTextOnNextLine
protected static boolean hasTextOnNextLine(SourceCode sourceCode, int lineNumber)
-
-