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 String
JAVADOC_ANY_LINES
protected static String
JAVADOC_EMPTY_LINE
protected static String
JAVADOC_END
protected static String
JAVADOC_LINE_PREFIX
protected static String
JAVADOC_LINE_WITH_TEXT
protected static String
JAVADOC_START
protected static String
NEW_LINE
protected static String
NON_WHITESPACE_CHARS
protected static String
OPTIONAL_WHITESPACE
protected static String
RELUCTANT
protected static String
WHITESPACE
-
Constructor Summary
Constructors Constructor Description CommentsUtil()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description groovy.lang.MetaClass
getMetaClass()
Object
getProperty(String property)
protected static String
group(String inside)
protected static boolean
hasTextOnNextLine(SourceCode sourceCode, int lineNumber)
Object
invokeMethod(String method, Object arguments)
void
setMetaClass(groovy.lang.MetaClass mc)
void
setProperty(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:
getMetaClass
in interfacegroovy.lang.GroovyObject
-
setMetaClass
public void setMetaClass(groovy.lang.MetaClass mc)
- Specified by:
setMetaClass
in interfacegroovy.lang.GroovyObject
-
invokeMethod
public Object invokeMethod(String method, Object arguments)
- Specified by:
invokeMethod
in interfacegroovy.lang.GroovyObject
-
getProperty
public Object getProperty(String property)
- Specified by:
getProperty
in interfacegroovy.lang.GroovyObject
-
setProperty
public void setProperty(String property, Object value)
- Specified by:
setProperty
in interfacegroovy.lang.GroovyObject
-
hasTextOnNextLine
protected static boolean hasTextOnNextLine(SourceCode sourceCode, int lineNumber)
-
-